[jQuery] Find first focusable element

[jQuery] Find first focusable element

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Tahoma">Anybody got an idea how to find the
first focusable element in a form?
The find() function returns the elements in no particular order...
Right now i have something like this:
</font></font><font size="-1"><font face="Tahoma">$('#formid').find("button,select,textarea,input").not("input[@type='hidden']")</font></font><font
size="-1"><font face="Tahoma">.filter(":enabled")</font></font><font
size="-1"><font face="Tahoma">.get(0);
But as said, this returns the elements in no particular order...</font></font><font
size="-1"><font face="Tahoma">
</font></font>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/