I have noticed that checkboxes are only firing a change event when selected (ticked) and not when unselected.
For the below the change alert "Changed" is only shown when the checkbox is pressed to select.
<div data-role="page" id="MyPage">
<input type="checkbox" id="myCheckBox" name="myCheckBox">
Just posted your code into a JSBin to test it and it seems to fire the alert on both scenarios on Chrome. Is this happening only on a specific device?
Seems to be only with A4. Works fine with A3.
I get the problem with the current repository code on iPad and chrome.
I'm also experiencing this issue with JQM a4 on iPhone simulator. Here is what my checkbox element looks like
it never fires the custom onchange event.
I think the source of the problem is commented here:
I hope it helps.
fixed scoping issue that was causing the checkbox check to fail, tests to follow Closed by 141127b
@johnbender Your fix did not worked
I can confirm that the fix works in the current repository code.
Can you post some more information so I can take a look?
Oh, sorry I should have replied soon, any way that worked correctly. I was missing one statement,
Nice work thanks again.
fixed scoping issue that was causing the checkbox check to fail, test…
…s to follow Fixes #1328