Return false isn't neccessary
On 9/1/06, Lewis, David <
[EMAIL PROTECTED]> wrote:
Using jQuery, is there an easy way to find a form in an HTML document, submit it, then return "false" (to avoid resubmission of the form).
Using the HTML snippet:
<form id="report-form" action="" method="post">
<input type="text" name="chart_value" value="Test chart value" />
<input id="report-submit" type="submit" value="Chart it!" />
</form>
… and the _javascript_:
$('#report-submit').click(function() {
$('#report-form').submit();
return false; /* cancel the form submission */
});
… the form does not appear to be submitted. Thanks in advance for any help!
~ David
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/