[thelist] getting type of form element
.jeff
jeff at members.evolt.org
Sat Nov 2 15:40:01 CST 2002
tom,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Tom Dell'Aringa
>
> I know there is a way to check for a type of element in
> a form but I cannot find the ref. Here is psuedo what
> i want to do:
>
> function something()
> {
> myForm
> if(myForm has a HIDDEN element in it)
> do something
> }
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
document.forms[0].elements[0].type
you'll get the following responses: hidden, text, password, select-one,
select-multiple, radio, checkbox, submit, button, image, textarea.
good luck,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list