How do I tick only one checkbox in HTML?
change(function() $("#myform input:checkbox"). attr("checked", false); $(this). attr("checked", true); ); This should work for any number of checkboxes in the form.
change(function() $("#myform input:checkbox"). attr("checked", false); $(this). attr("checked", true); ); This should work for any number of checkboxes in the form.