hi, my mates doin an assignment, i was trying to help him, but i don't know java script very well.
COuld sum1 please give me some pointers, for example, once i've assigned all the info from the input types to variables... how do i get it all into one array, so every time i hit "submit" the info is taken and put into slot 'i' of the array.
also, i'm using a submit button input type... just out of interest, what exactly happens with the "submit" button, what does it do with all the data on the form... coz so far i've just assigned an on-click tag that points to a method! just wondering if it has a default action that does something!
Set the right attributes on the<form> tag correctly to get submit to work.
To put things in an array:
var myarray = new Array();
then in the handler:
myarray[i] = this.value;
to find out what number to use, loop through the array called this.parentNode.childNodes until this.parentNode.childNodes[i] == this.
Nigel McFarlane, Author: "Firefox Hacks", "Rapid Application Development with Mozilla"
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center