Checking if checkbox is checked or not.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 835
<input id = "checkbox1" type = "checkbox" name = "one" value = "1" checked = "checked">
<input id = "checkbox2" type = "checkbox" name = "two" value = "2">
<input id = "checkbox3" type = "checkbox" name = "threr" value = "3">


$('#checkbox1').prop('checked'); 

true
$('#checkbox2').prop('checked');

false

Comments or Responses

Login to post response