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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -