<script type="text/javascript"> function Checkinternationallocation(checkBoxList) { var options = checkBoxList.getElementsByTagName('input'); var arrayOfCheckBoxLabels = checkBoxList.getElementsByTagName("label"); var s = ""; for (i = 0; i < options.length; i++) { var opt = options[i]; if (opt.checked) { s = s + ", " + arrayOfCheckBoxLabels[i].innerText; } } if (s.length > 0) { s = s.substring(2, s.length); //sacar la primer 'coma' } var TxtBox = document.getElementById("<%=txt_combo_international_location.ClientID%>"); TxtBox.value = s; document.getElementById('<%=hide_international_location.ClientID %>').value = s; } </script>
<div class="rightPositioncontrol"> <asp:TextBox ID="txt_combo_location" runat="server" Width="450" onChange="tab();" ToolTip="Location(s) of Job"></asp:TextBox> <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="txt_combo_location" WatermarkText="Select Location(s) of Jobs" WatermarkCssClass="watermarked" /> <cc1:PopupControlExtender ID="PopupControlExtender3" runat="server" TargetControlID="txt_combo_location" PopupControlID="Panel_location" Position="Bottom"> </cc1:PopupControlExtender> <input type="hidden" name="hide_location" id="hide_location" runat="server" /> <asp:Panel ID="Panel_location" runat="server" Width="450" Height="200px" ScrollBars="Vertical" BackColor="AliceBlue" BorderColor="Gray" BorderWidth="1"> <asp:CheckBoxList ID="chk_location" CssClass="radio_button_txt" runat="server" Width="450" onclick="Checklocation(this)"> </asp:CheckBoxList> </asp:Panel> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)