I am using phonegap, and this code loads perfectly in my android mobile.But When i click the button it does not shows the text.
try using this:
Set Text
Instead of doc ready use pageinit of jQuerymobile if developing for mobile apps.
doc ready
pageinit