I know this is a bit cheeky posting this here, put I didn't know who else to ask, so here goes.
I'm using JavaScript to validate a series of forms which all have a text box, another text box and a submit button using the onSubmit handler. The onSubmit handler then sends the name of the form, and the name of the text boxes to a function called val_data(), which then makes sure that both have values and that the second one is a number using isNAN() I'm having trouble refereing to each of the text boxes generically using the document object...
function val_data(form_name, text_name, num_name) {
if(!isNAN()) {
alert("");
}
return false;
}
I need to know how to referer to each of the text boxes in the forms i'm using, usually like document.formname.textboxname but when i string the functions arguments together i get an unknown error which says that what i'm refering to doesn't excist. Any Help?