codetc
02-12-2009, 05:06 AM
Hi,, I am trying to submit/reset forms using links and images from outside the <form> tag
I was using this:
<a href="#" onclick="document.getElementById('formname').submit();"> Test link for submitting form </a>
and
<a href="#" onclick="document.getElementById('formname').reset();"> Test link for reseting form </a>
but they don't seem to work. Help please.
I was using this:
<a href="#" onclick="document.getElementById('formname').submit();"> Test link for submitting form </a>
and
<a href="#" onclick="document.getElementById('formname').reset();"> Test link for reseting form </a>
but they don't seem to work. Help please.