I’m having trouble adding a new radio input dynamically to an existing control group using jQuery Mobile. It will add, yet the style is not correct & it doesn’t appear to interact with the other inputs correctly.
Here’s my fiddle:
Can anyone see what I’m doing wrong? Or is is a case of regenerating the whole fieldset /controlgroup again? 🙁
Thanks! Code below too…
Behavior problem solved with below change
Your modified code for dynamically adding radio.
Style problem solved with below change
Just recreate div instead of fieldset
Check Fiddle Demo