Very simple:
First create a jQuery HTML element on the button:
var button = $("<button>My Button</button>");
Then enter the button, wherever you are, on the page:
$("#my_button_div").append(button);
And finally, run the jQuery Mobile button () on the button:
button.button();
You should now have a JQM function button on your page.
Erez rabih
source share