Answers for "jquery checkbox only one checked"

1

check one checkbox at a time jquery

$(document).on('click', 'input[type="checkbox"]', function() {      
    $('input[type="checkbox"]').not(this).prop('checked', false);      
});
Posted by: Guest on October-12-2021
0

if checkbox checked jquery value 1

var checked = '0';  if($('#checkbox').prop('checked')){ checked = '1'; }
Posted by: Guest on June-16-2020

Code answers related to "jquery checkbox only one checked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language