Skip to main content

Bug Tracker

Side navigation

Ticket #5639: jqform.html
File jqform.html, 0.5 KB (added by Julian, December 11, 2009 06:15AM UTC)

test for submit event bug

<html>
<head>
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> -->
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4a1.js"></script>
<script>
$(document).ready(function(){
  $("#form_button").bind('click',function(e){e.preventDefault();$('#the_form').submit();});
  });
</script>
</head>

<body>
<form id='the_form' method='get' action='jqform.html'>
 <input id="f_inp" type="text" name="esn" value=""/>
</form>
<a id='form_button'>Click to submit</a>
</body>
</html>

Download in other formats:

Original Format