Sha256: a4f38dfe85c0aeb297e36ecc3e600d86a7d8e0973c327ee9dd16cb34050acde5
Contents?: true
Size: 695 Bytes
Versions: 25
Compression:
Stored size: 695 Bytes
Contents
<html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>preventDefault() on form submission</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $("#foo").submit(function (e) { e.preventDefault(); return false; }) }); </script> </head> <body> <form id="foo" action="forms_with_input_elements.html" method="get" accept-charset="utf-8"> <p><input type="submit" id="next" value="Continue"></p> </form> </body> </html>
Version data entries
25 entries across 25 versions & 1 rubygems