I am trying to submit a form with jQuery, and I have to miss something small, because I cannot get this to work, and from everything that I see, it should work fine.
What happened to this?
<table class="newrecord"><form id="editthis" action="page.php" method="post">
<tr><td class="left">Name:</td><td><input type="text" name="name" id="name" /></td></tr>
<tr><td class="left">Company:</td><td><input type="text" name="company" /></td></tr>
<tr><td class="left"><a href="?action=browse">Cancel</a></td><td><input type="button" name="submit" class="subbut" id="subthis" value="Update" /></td></tr>
</form></table>
And javascript:
$("#subthis").click(function() {
$('#editthis').submit();
});
As indicated in the code, the warning window works if I press the submit button, but when I use the jQuery send function, nothing happens. What am I missing ???
Jrob source
share