... I am still studying the jQuery Mobile platform, so I know that itβs a pain when you just need to do something, but you really should try to use what is already built in the framework, especially if you are going to create mobile applications. Do yourself a favor and find the time needed to study it.
In addition, another tip; you need to avoid using px values ββfor rendering elements, since they usually don't scale well on mobile devices, em values ββare best suited for use in a cross platform.
I successfully used something similar to the following code to enter "inline" text and select fields with jqm. if you want the styles to be different, you can add the letter of the theme template after a separate ui-block element so that it looks like ui-block-b or ui-block-c, etc. This is all described here: http://demos.jquerymobile.com/1.0rc1/docs/content/content-grids.html
<div class="ui-grid-a"> <div class="ui-block"> <label for="cs[ps_1]" class="fieldLabel ui-hidden-accessible">option 1: </label> <select name="cs[ps_1]" id="cs[ps_1]" data-mini="true"> <option>options</option> </select> </div> <div class="ui-block"> <input type="text" style="width:10em;" id="cs[pn_1]" name="cs[pn_1]" /> </div> </div>
source share