show/hide javascript not working when we click on checkbox in asp.net. I have using the following code.
Code snippets:
<div class="prod-filter-nav">
<h4>Category</h4>
<asp:CheckBoxList ID="CheckBoxList1" runat="server" class="prod-list"
AutoPostBack="True" RepeatLayout="UnorderedList">
</asp:CheckBoxList>
</div>
The following javascript used for this page:--
jQuery(document).ready(function($){
$('.prod-filter-nav h4').on('click', function(){
$(this).toggleClass('closed').siblings('.prod-list').slideToggle(300);
})
});
javascript not working when we select any of the checkbox item