JQM (jQueryMobile) Dynamically added elements not displaying correctly and CSS is not applied

Try this:

$(newSelect).selectmenu('refresh');

or this which will force the rebuild of it:

$(newSelect).selectmenu('refresh', true);

and please let me know if it worked.

Leave a Comment