Answers for "get value of checkbox"

13

jquery checkbox checked value

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

get the value of a checkbox jquery

$("input[type='checkbox']").val();
$('#check_id').val();
Posted by: Guest on July-03-2020
0

get the value of checkbox in js

element.checked;
Posted by: Guest on July-07-2021
1

checkbox value

<input type="checkbox" name="vehicle1" value="Bike">

The checkbox value is 'Bike'.
Posted by: Guest on July-27-2020

Code answers related to "get value of checkbox"

Code answers related to "Javascript"

Browse Popular Code Answers by Language