Open iamthestreets opened 7 years ago
Isn't clear what is the value in each case? You can get the true/false value with:
$('#addEventAllDay').on('ifChecked', function(event){
console.log($(this).is(':checked'));
});
$('#addEventAllDay').on('ifUnchecked', function(event){
console.log($(this).is(':checked'));
});
When I check a box and look at the console logs it says the value is
on
When I uncheck a box and look at the console logs it also says the value ison
Both of these examples return a value of
on
.I want to get a true or false value depending on if the box is checked or unchecked.
How can I do this?