Why is the checked attribute not visible in the DOM?
In the onchange input.val() is always on, but the checked attribute is changing??
input.change(_=> {
console.log('val:', input.val(), ', checked:', input.prop('checked'));
});
console
val: on , checked: true
val: on , checked: false
val: on , checked: true
val: on , checked: false
readonly not working
If the input checkbox is readonly I can still change the value and when clicking the checkbox gives the same output in console