为什么选中的属性在DOM中不可见?
在onchange
中,input.val()
始终是on
,但checked
属性正在更改??
input.change(_=> {
安慰.log('val:', input.val(), ', checked:', input.prop('checked'));
});
安慰
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 安慰