Snippet Fire

Beta
 Log In    |   Sign Up

jQuery : Check A Checkbox Using jQuery

Added on Jan-20-2012 by mjudin
For jQuery

Tags : checkbox

From jQuery version 1.6 and onwards you can use the prop() function for checking and unchecking html checkboxes

DOWNLOAD


$(".mychkbox").prop("checked", false);
$(".mychkbox").prop("checked", true);

    

Report Snippet

blog comments powered by Disqus