troubleshooting Question

Help with changing background color of textbox when clicking on checkbox from another control

Avatar of vcharles
vcharles asked on
.NET ProgrammingASP.NETVisual Basic.NET
11 Comments1 Solution599 ViewsLast Modified:
Hello,

I am trying to change the backgroundcolor of C1SDecativation when I click on the checkboxes of C1SDeacrivationA, below is my code, how do i modify my javascript code
to achieve this.

<script type="text/javascript" id="ComponentOneClientScript2">
     function C1SDeactivationA_OnClientDropDownCollapsed() {
         //
         // Put your code here.
         var combo = $find('C1SDeactivationA');
         $("#C1SDeactivation").val(combo.get_text());
     };
</script>

 <script type="text/javascript" id="Script1">
     function C1SDeactivationA_OnClientSelectedIndexChanged() {
         //
         // Put your code here.
         var combo = $find('C1SDeactivationA');
         $("#C1SDeactivation").val(combo.get_text());
     };
</script>
    <script type="text/javascript" id="ComponentOneClientScript1">
        function C1SDeactivationA_OnClientBlur() {
            //
            // Put your code here.
            var combo = $find('C1SDeactivationA');
            $("#C1SDeactivation").val(combo.get_text());
        };
</script>


<td bgcolor="Silver" class="style986">
                     <asp:TextBox ID="C1SDeactivation" runat="server" Height="30px" ReadOnly="True"
                         TextMode="MultiLine" Width="180px" BackColor="#FFFF99" AutoPostBack="True"></asp:TextBox>
                    <cc1:C1ComboBox ID="C1SDeactivationA" runat="server"
                         OpenDropDownOnLoad="True"
                         SelectionMode="Multiple" Width="180px" onclientblur="C1SDeactivationA_OnClientBlur"
                         onclientdropdowncollapsed="C1SDeactivationA_OnClientDropDownCollapsed"
                         onselectedindexchanged="C1SDeactivationA_SelectedIndexChanged"
                         OnClientSelectedIndexChanged ="C1SDeactivationA_OnClientSelectedIndexChanged"
                         AccessKey="" ToolTip="" HideDropDownListOnBlur="False" AutoPostBack="False"
                         DropDownPositioningMode="Absolute">
                         <ItemsTemplate>
                             <asp:CheckBox ID="SDeactivation" runat="server" />
                             <%# DataBinder.Eval(Container.DataItem, "SDeactivation")%>
                         </ItemsTemplate>
                     </cc1:C1ComboBox>
                      </td>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros