I have written html as following lines of code
<input id="<code generated id>" type="text" value="select"/> <div id="<code generated id>" class="popup"> <ul id="<code generated id>" class="none"> <li><input type="checkbox" value="A"/></li> <li><input type="checkbox" value="B"/></li> <li><input type="checkbox" value="C"/></li> </ul> </div> and style is
.none { display:none; } I have written jQuery as below lines of code in order to make ul tag visible
$(document).ready(function () { $('#<%= pnlchkouter.ClientID %> #<%= txtBoxCustom.ClientID %>').bind('focus', function () { // alert("<%= chkList.ClientID %>"); $(".popup-checkbox ul").css({"display":"none"}); $('#<%= chkList.ClientID %>').css({"display":"block" }); }); }); When I write focusout like below
$(document).ready(function () { $('#<%= pnlchkouter.ClientID %> #<%= txtBoxCustom.ClientID %>').bind('focusout', function () { $(".popup-checkbox ul").css({ "display": "none" }); }); }); It works as required but the issue is that I am not able to check the checkboxes.
id="<code generated id>"and$('#<%= pnlchkouter.ClientID %> #<%= txtBoxCustom.ClientID %>'), why not just place in example values and place this in a snippet/fiddle? It will make it much easier for us to work with.$(".popup-checkbox ul").css({ "display": "none" });this code