I created a checkbox:
<input type="checkbox" id="populatie" name="werking">
But when I try to check if it's checked, it doesn't do anything.
$("#opslaan").click(function(){
if ($("#populatie").checked) {
alert(hello); }
})
What am I doing wrong?
Edit: when I inspect element, and I checked it, I get:
checked true
So it's definetly checked...