I have a form named "theForm". How can I loop through this form elements that have an "id" ATTRIBUTE to them and then populate my ids array?
var ids = new Array;
for(i=0; i<document.theForm.elements.length; i++)
IF ELEMENT HAS AN ID ATTRIBUTE POPULATE ids array