Jquery retrieve checkbox value

Code examples

13
0

jquery checkbox checked value

if ($('#check_id').is(":checked"))
{
  // it is checked
}
1
0

get the value of a checkbox jquery

$("input[type='checkbox']").val();
$('#check_id').val();

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................