external jquery mobile not implementing jquery mobile style -


i'm creating few jquery elements on external js, use $.getscript("page.js") , these external elemets append main html, that's ok.

the problem is: these elements not getting jquery mobile style data-role attr.

do have else add roles each element?

to solve problem implement .enhancewithin().

first use container new tags added , apply previous function.

for instance: $("#containerfornewelements").enhancewithin()

inner elements of "#containerfornewelements" transformed jquery mobile elements

cheers.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -