Feedback on: irt.org FAQ Knowledge Base Q797
Worth:
Worth reading
Comments:
let say i have "<input TYPE="image" SRC="http://www.foo.com/submitimage.gif" NAME="imagesubmit1" ALIGN="top"
HEIGHT=50 WIDTH=50>
as a part of the form.
this will not be counted as one of the elements of the form.
what i would like to do is count the number of elements on the page and show an alert. if i have 2 elements (input type=text and input type=image) on my form the alert box still shows 1.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
I have noticed in Netscape (version 4.x) that the type attribute of a listbox (select object) is always 'select-multiple', even if the multiple attribute is off.
Worth:
Length:
Technical:
Just right
Comments:
You can also use .value to get the value (instead of .options[selectedindex] as per this example).