Answers for "how to use checkbox in jquery"

11

jquery checkbox checked

$("checkbox").is(":checked")
Posted by: Guest on April-10-2020
0

checkbox on click jquery

$(document).ready(function() {
  //set initial state.
  $('#textbox1').val($(this).is(':checked'));

  $('#checkbox1').change(function() {
    $('#textbox1').val($(this).is(':checked'));
  });

  $('#checkbox1').click(function() {
    if (!$(this).is(':checked')) {
      return confirm("Are you sure?");
    }
  });
});
Posted by: Guest on September-14-2020

Code answers related to "how to use checkbox in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language