How to find checked event in a checkbox using jquery? -


i trying execute function on clicking check box. using following code not working can find whats problem code?

$('#selectall').click(function(){      alert("hi"); }); 

html

<th><input type="checkbox" name="selectl" value="on" id="selectall"/></th> 

$(function(){     $('#selectall').change(function(){          alert("value changed");     }); }); 

see working demo.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

c# - Binding attached property to IEnumerable -