How to get reference to all Form elements

Status
Not open for further replies.

anuj_web

New Member
Messages
145
Reaction score
0
Points
0
Hi

I want to check for all elements if they are blank or not
all at once
bcoz i have too many text boxes...


Is there ne javascript method for the form to check this ??

thanks
 

anuj_web

New Member
Messages
145
Reaction score
0
Points
0
Thanks Asif for that quick reply.....


I found this while googling....

Code:
<script>
	function disableForm(theform) {
		if (document.all || document.getElementById) {
			for (i = 0; i < theform.length; i++) {
			var formElement = theform.elements[i];
				if (true) {
					formElement.disabled = true;
				}
			}
		}
	}
</script>

thanks again
 
Status
Not open for further replies.
Top