I'm trying to figure out a way to find the first visible form input
element (i.e., input[type!='hidden'], select, textarea) in a page.
The simplest way I could think of doing this would be to do $$
('input[type!='hidden'], select, textarea').getFirst(), but the $$
function seems to look for all of the input elements first, then the
select elements, and finally the textarea elements.  I know about the
compareDocumentPosition DOM method, but it looks like it isn't
supported well in all browsers.  Is there a way to get the first form
input element?

Kevin D Smith

Reply via email to