Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
172
rated 0 times [  173] [ 1]  / answers: 1 / hits: 17949  / 13 Years ago, fri, january 13, 2012, 12:00:00

I've tried $('#field').focus(), and any other method found on the internet. Nothing worked. I have a simple html that reproduces the problem.



<!DOCTYPE html> 
<html>
<head>
<script type=text/javascript src=https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js></script>
<script type=text/javascript>
$(document).ready(function() {
$('#field').focus();
});
</script>
</head>
<body>
<input type=text id=field name=field/>
</body>
</html>


Please help!


More From » jquery

 Answers
28

Actually, the general javascript function focus is deactivated in the android browser. Hence, the jQuery focus function is deactivated since it's using the above.


[#88029] Thursday, January 12, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lailab

Total Points: 706
Total Questions: 102
Total Answers: 95

Location: Falkland Islands
Member since Mon, Jul 13, 2020
4 Years ago
;