1

I have an HTML5 textbox and i want to set cursor inside textbox after page loaded like when you open google in ipad?Is it possible to set the cursor in ipad and tab devices.?

I only need set cursor inside textbox code.

I tried this but not working.Please help me out with this...Thanks in advance...

$('#Bhairav').focus();
Bhairav
  • 159
  • 3
  • 17

1 Answers1

0

Try to use timeout,

setTimeout(function(){$('#Bhairav').focus();}, 200);
Surendheran
  • 187
  • 1
  • 18
  • ,I tired with that but focus is not setting on the textfield on ipad browsers.Is this code works for IPad browsers also? – Bhairav Jun 30 '15 at 06:07
  • Yes it'll work, should be called after rendering the page(Next to

    ).

    – Surendheran Jun 30 '15 at 12:19
  • Thanks for the response surendar but one small help can you create it in the fiddle so that i can check it in ipad browsers please. – Bhairav Jun 30 '15 at 12:49
  • ,Still it is not working for me,can u please create a demo fiddle so that i can check and resolve my issue. – Bhairav Jul 06 '15 at 10:11