I tried this, replacing the document.forms[0].elements[0].focus()
line. It didn't work.
Thanks,
Richard
On Oct 28, 10:11 am, Richard G wrote:
> Or if you don't have much info on the page and just want the first visible
> field to have focus you could do:
> $("input:visible:enabled:first").focu
You could also use jquery syntax:
$('#item' :input:visible:enabled:first).focus()
Or if you don't have much info on the page and just want the first visible
field to have focus you could do:
$("input:visible:enabled:first").focus()
More info on the jquery selectors is at:
http://docs.jquery.com
Use jQuery -- it's a lot easier to find particular elements within the DOM.
http://api.jquery.com/focus/
On Friday, October 28, 2011 9:51:36 AM UTC-4, horridohobbyist wrote:
>
> Problem sol-ved...
>
>
> document.forms[0].elements[0].focus();
>
>
> Richard
>
> On Oct 28, 7:13 am, horridohob
Problem sol-ved...
document.forms[0].elements[0].focus();
Richard
On Oct 28, 7:13 am, horridohobbyist wrote:
> I've searched the archive and have found several solutions for
> specifying field focus using JavaScript, but they all seem to be out
> of date, ie, they don't work. What is the curr
4 matches
Mail list logo