I'am stoked at a basic task. I want to check if a checkbox i checked or not using jQuery.
The problem is that the if condition is being executed no matter its checked or not.
What am I doing wrong?
($('#betingelser').prop('checked', false)){
console.log("checked if");
isValid = false;
result += 'Venligst accepter betingelserne<br>';
}
Thanks for your time
Thar