Forum Moderators: open
Ok, this is my HTML form,
<form name="add_product" action="" method="post">
<input name="product_id" type="hidden" value="1" />
<input name="submit" type="submit" value="Submit"/>
</form>
And this is my JS,
function product_Add () {
// Submit form
document.add_product.submit();
}
And this is the HTML link that submits the form,
<a href="javascript:product_Add ()">Add</a>
This doesn't work in IE or FF, and with the developer console in FF I get the error "document.add_product.submit is not a function".
For the record, my document type is XHTML transitional.
Thank you.