Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I have a project where I want to automatically popup the keyboard on the focus of the element.

I have bind the touchstart event to the element. The element is getting focussed but the keyboard is not popping up.

I event tried putting a delay. But still no luck.

This is the code which I tried.
JavaScript
$("#id").bind('touchstart', function(e) {
    $("#id").focus();
});

$('#id').trigger("touchstart");

Any help would be appreciated.
Posted
Updated 10-Apr-14 3:38am
v3
Comments
Sunasara Imdadhusen 10-Apr-14 9:37am    
are you checking in mobile web browser?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900