Ok, I've been fiddling with this for almost 40 minutes now... WTF am I doing wrong?
<input type="Checkbox" name="E1019" id="E1019" value="1">
<div id="result"></div>
Javascript:
$('#E1019').change(function () {
if ($('E1019').is(':checked')) {
$('#result').html('checked');
} else {
$('#result').html('unchecked');
}
});
Problem solved: Missing # in if statement: $('E1019') should be $('#E1019')