How do I make only one checkbox selectable 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.