Page 1 of 1

how to pass this.form like value in text link ??

Posted: Wed May 23, 2007 7:34 am
by PHPycho
hello forums !!
i had a text link to submit the form
Ex:
<a href="#" onclick="validate(this.form,this.form.length)">submit</a>
i want to pass those values but errors occurs, this.form is not a property, but i need to pass that value because my validation requires so...
any idea !!
awaiting for your help

Posted: Wed May 23, 2007 7:42 am
by feyd
Reference the form directly.

Posted: Wed May 23, 2007 8:52 am
by Ind007
what is your intention in passing this.form as a input parameter to a function. It looks very strange, atleast for me.