Answers for "jquery check input"

13

jquery checkbox checked value

if ($('#check_id').is(":checked"))
{
  // it is checked
}
Posted by: Guest on March-09-2020
7

jquery set checkbox

//jQuery 1.6+ use:
$('.checkboxClass').prop('checked', true);
//jQuery 1.5.x and below use:
$('.checkboxClass').attr('checked', true);
Posted by: Guest on July-22-2019
0

jquery check input

$( "input" ).prop( "checked", true );
Posted by: Guest on September-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language