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