jquery - Position of the soft keyboard in Android -



jquery - Position of the soft keyboard in Android -

i want soft keyboard popup right below input element whenever clicked. exact situation when click input element(on android smartphone) whole page(i.e entire dom) goes create room softkeyboard. don't want behavior. wanted is, softkeyboard should open popup without moving actual page.

is there way this? tried lot changing position attribute nil worked.

this code:

<div data-role="page" id="home" data-theme="a" style="background-color:white"> <!--header--> <div data-role="header" data-theme="a"> <img src="img/hd.jpg" style="width:100%;z-index:0;"> <p><strong>booking online</strong></p> <a href="#splash" data-transition="slide" data-direction="reverse" data-shadow="false" class="ui-btn ui-nodisc-icon ui-btn-icon-notext ui-icon-carat-l" >back</a> <a href="#" class="ui-btn ui-nodisc-icon ui-btn-icon-notext ui-icon-bars">menu</a> </div> <div data-role="fieldcontainer" style="margin: 19% 0% 0% 0%"> <center> <form> <fieldset data-role="controlgroup" data-type="horizontal"> <legend></legend> <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2a" value="on" checked="checked"> <label for="radio-choice-h-2a">domestic</label> <input type="radio" name="radio-choice-h-2" id="radio-choice-h-2b" value="off"> <label for="radio-choice-h-2b">international</label> </fieldset> </form> </center> </div> <div style="margin:9% 0% 0% 0%"> <hr> </div> <div class="ui-grid-b center" style="margin:6% 0% 0% 0%"> <div class="ui-block-a"><a href="#pin_list" id="pin1" data-transition="slideup" class="ui-btn ui-btn-inline ui-shadow ui-corner-all" >from</a></div> <div id="fromto" class="ui-block-b" style="margin: 0% -20% 0% 11%"><a href="#" class="ui-btn ui-icon-arrow-r ui-state-disabled ui-btn-icon-notext ui-corner-all" style="filter: alpha(opacity=90);opacity: .9;">no text</a> </div> <div class="ui-block-c"><a href="#pin_list" id="pin2" data-transition="slideup" class="ui-btn ui-btn-inline ui-shadow ui-corner-all">to</a></div> </div> <div style="margin:6% 0% 0% 0%"> <hr> </div> <div data-role="controlgroup" data-type="horizontal" align='center' style="margin:7% 0% 0% 0%"> <a href="#" class="ui-btn ui-corner-all ui-alt-icon ui-icon-mail ui-btn-icon-left ui-nodisc-icon ui-btn-active">mail</a> <a href="#" class="ui-btn ui-corner-all ui-alt-icon ui-icon-shop ui-btn-icon-left ui-nodisc-icon">shop</a> </div> <div style="margin:6% 0% 0% 0%"> <hr> </div> <table id="weighttable"> <tr > <td style="text-align:right;width:40%">weight</td> <td style="text-align:center"><input data-type="number" type="number" value="0.5" id="weight"></td> <td style="text-align:left;width:40%">kg</td> </tr> </table> <div align=center style="margin:2% 0% 0% 0%"> <a id='getq' class="ui-btn ui-btn-inline ui-icon-carat-r ui-btn-icon-right ui-corner-all ui-nodisc-icon">get</a> </div> <div data-role="navbar" align=center style="margin:2% 0% 0% 0%;width:100%;"> <ul> <li ><a href="#">menu</a></li> <li style="width:50%"><a href="#track" data-transition="slideup" class="ui-btn ui-alt-icon ui-icon-search ui-btn-icon-top ui-nodisc-icon">track</a></li> <li style="width:25%"><a href="#" class="ui-btn ui-alt-icon ui-icon-bullets ui-btn-icon-top ui-nodisc-icon">more</a></li> </ul> </div> </div>

you can find 1 input field @ #weighttable when tap element whole page moves up, below navabar softkeyboard appears. want appear right below input field hiding contents after it. please help me.

this img:

jquery html5 android-softkeyboard

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -