I know with the last build of JQuery Mobile there was a bug when adding dynamic checkboxes and I had to assign them all a unique ID and call the .page() on the element in order for them to render properly
When I upgraded to latest Beta 2 build, this does not seem to work anymore.
I tried a few different things, but can not get the checkboxes to render properly when adding them to the page dynamically.
none of these work right:
$(“input[type=’checkbox’]”).checkboxradio(“refresh”);
$(“input[type=’checkbox’]”).checkboxradio();
and my old bug fix of calling .page() makes it so the checkboxes don’t event show up at all.
I have not yet played around with 1.0b2 however in the blog post about the release the author mentioned a new method of initiating widgets as follows:
That comes from the blog post here: http://jquerymobile.com/blog/2011/08/03/jquery-mobile-beta-2-released/
Here is a jsfiddle of the solution: http://jsfiddle.net/cvxDg/