I have this checkbox:
<input id="IsOutdoors" class="checkbox" type="checkbox" value="1">
And I'm trying to retrieve 1
if it's checked.
I've tried:
var IsOutdoors = $('#IsOutdoors').val();
Which always returns 1
no matter what.
I've tried: var IsOutdoors = $("#IsOutdoors option:selected").val();
which returns nothing
I've tried: var IsOutdoors = $('#IsOutdoors').is(':checked');
which returns true/false
Any other simple ways of returning the number? Thanks!