To show keypad automatically to next input text on webview in iphone
<p><img src="http://i.stack.imgur.com/ERVau.png" alt="Before keypad shift to next input">
<img src="http://i.stack.imgur.com/8Sw5c.png" alt="after calling focus() or select() keypad disappears."></p>

<p>Can anyone please help me by solving problem in my application.I have three input tags of type text and I need to shift the cursor point from one input tag to other.I used focus() but not working.keypad is dismissing.I need to show the keypad automatically after shifted to second or third input tags.</p>

<pre><code>&lt;span style="font-size:25px;
                "&gt;(&lt;/span&gt;&lt;input type="tel" value="" id="mobile_num1" name="mobile_num1" placeholder="Mobile Phone Number" alt="" title="Mobile Phone Number"  class="input-box_one-phone" maxlength=3 onkeypress="return checknum(this)" /&gt;&lt;span style="font-size:25px;
                    "&gt;)&amp;nbsp;&lt;/span&gt;&lt;input type="tel" value="" id="mobile_num2" name="mobile_num2" placeholder="Mobile Phone Number" alt="" title="Mobile Phone Number"  class="input-box_one-phone" onkeypress="return checknum(this)" maxlength=3/&gt;&lt;span style="font-size:25px;
                    "  &gt;&amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;input type="tel" value="" id="mobile_num3" name="mobile_num3" placeholder="Mobile Phone Number" alt="" title="Mobile Phone Number"  class="input-box_one-phone"  maxlength=4 /&gt;
&lt;script&gt;
function checknum(currObj){


        if(window.event.keyCode != 8 ){
            if(window.event.keyCode &gt; 48 &amp;&amp; window.event.keyCode &lt; 59) {

                if(currObj.value.length == 3){
                    var dd =    $(currObj).next();
                    if($(dd).html()){
                        dd = $(dd).next();
                    }
                    $(dd).val(String.fromCharCode(window.event.keyCode));
                    $(dd).focus();
                    return false;

                }


            }
        }    
            return true;

    }
&lt;/script&gt;
</code></pre>
