I am using jquery mobile…
I have a button (data-role=”button”) which calls a javascript function which executes some ajax. This ajax then adds some HTML to the page. The returned HTML has a data-role=”button” on it but it’s not returning in the correct jquery mobile styling.
any ideas how to get the ajax to return the jquery in the correct styling without actually staticly putting in the jquery classes? I would perfer to use data-role for consistency.
You must enhance manually the html because isn’t any delegate to doing that.
Preferably immediately after adding html 🙂