[thelist] form field listing

Kyle Murphy kyle.murphy at tempschedulingsystem.com
Fri Jan 17 16:58:01 CST 2003


That's great, but why is the maxlength field writing 'unavailable' for
everything?


On Friday, January 17, 2003 4:20 PM, Erik Mattheis wrote:

> Yes, JavaScript to the rescue. Try something like:
>
> function doMyWorkForMe() {
>	var the_stuff = '';
>	for (i = 0; i < document.forms[0].elements.length; i++) {
>		the_stuff += 'type: ' +
document.forms[0].elements[i].type + '<br />';
>		the_stuff += 'size: ' +
document.forms[0].elements[i].size + '<br />';
>		the_stuff += 'maxlength: ' +
document.forms[0].elements[i].maxlength
+ '<br />';
>		// etc etc etc
>		the_stuff += '<br />'
>	}
> document.write(the_stuff);
> }
>
> window.onload = doMyWorkForMe;





More information about the thelist mailing list