emehrkay
01-03-2006, 09:35 PM
i have a div that has a table with form fields in it. i want to single out those fields and loop through them and validate their values. how would i do that?
document.getElementsByTagName would work, its just that it would pull every element with that tagname, i just want the ones in that div, and im only checking to see if they're blank.
thanks
example:
<div id="container">
<form>
<input id="nameField">
<input id="siteField">
document.getElementsByTagName would work, its just that it would pull every element with that tagname, i just want the ones in that div, and im only checking to see if they're blank.
thanks
example:
<div id="container">
<form>
<input id="nameField">
<input id="siteField">