In the jquery 1.8.x version, our checkbox selection and unchecked actions are as follows:
Decide whether to select
$ (' #checkbox '). Prop (' checked ')
Set checked and unchecked states:
$ (' #checkbox '). attr (' checked ', true)
$ (' #checkbox '). attr (' checked ', false)
But this method in jquery1.9.1, some processing is not the same
Ie10,chrome,ff, for the selected state, the first $ (' #checkbox '). attr (' checked ', true) can be implemented
But when cleared by code, the next time you pass the code $ (' #checkbox '). attr (' checked ', true) to select
Although the code has checked= ' checked ', but the screen performance is not ticked.
IE8,IE6 does not have this problem.
Later investigation of the relevant information, found now attr (' checked ', true) are replaced by prop (' checked ', true)
Some changes to the CheckBox after Jquery 1.9.0