This question already has an answer here:
this is my checkbox
<label class="checkbox"> <input id="eu_want_team" name="eu_want_team" type="checkbox"> </label>
var eu_want_team = $('#eu_want_team').val(); alert(eu_want_team);
Its always displaying ON, is it checked or not. Whats the problem with it?
u should use .prop('checked') in jQuery
+1 . Or $("#eu_want_team").prop("checked")
Itay You're also right. will add to answer