Hi,

I have a form that looks like this:

<table><tr>
<form action="http://jquery.com"; method="post" id="myForm">
<td>
<input value="submit" type="submit" onclick="conversion(1000, this);
return false;" />
</td>
</form>
</tr>
</table>

The onclick call for the button accesses code which does some special
processing and then is supposed to submit the form. The form
submission looks like this:

jQuery(this.clickedObject).parent('form').slice(0).submit();

Problem is this won't work. I'm assuming it's because of malformed
xhtml (the form tag inside the tr) however the html itself can not be
changed but my JavaScript can.

Unfortunately I can not use the form's id to submit the form as there
are two malformed xhtml forms that run on the same code. Is there
another way to get to the form tag by traversing elements in reverse
order?

Any help would be greatly appreciated.

Reply via email to