Closed CarpeTempus closed 11 years ago
@CarpeTempus
I can confirm that this doesn't work anymore, something we have to look into.
This still works: $( "#rememberMe" ).is( ":checked" );
Example: http://jsbin.com/izohig/29/edit
@uGoMobi Thanks for the information and the tip :-) :+1:
When the checkbox becomes checked/unchecked it's not a good idea to modify the DOM by appending/removing the "checked" attribute, because that breaks form reset. The idea is to set the prop. So .prop( "checked" ) is the correct way to get/set the checked state, not .attr( "checked" ).
The presence/absence of the "checked" attribute determines what value the checkbox will get when someone resets the form, so we should not modify that particular part of a checkbox's DOM.
Hi,
today I updated jQuery mobile in my app to 1.3.0 rc01. After some testing I noticed that the following does not work anymore:
This is my page:
When the user clicks on button1 or button2 I need to react on the checkbox state. I'm doing it this way:
In the past this worked perfectly - today I noticed that checkboxstate ist always "checked" wether the checkbox is checked or not. I'm not sure but I think it might be a bug - what do you think?
Platforms/browsers (including version) and devices tested:
jQuery Mobile and jQuery core version used:
Other relevant information, e.g. using PhoneGap:
Thanks for reading.
Kind regards CarpeTempus