Bug Tracker

Ticket #5639: jqform.html

File jqform.html, 531 bytes (added by Julian, 13 years ago)

test for submit event bug

Line 
1<html>
2<head>
3<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> -->
4<script type="text/javascript" src="http://code.jquery.com/jquery-1.4a1.js"></script>
5<script>
6$(document).ready(function(){
7  $("#form_button").bind('click',function(e){e.preventDefault();$('#the_form').submit();});
8  });
9</script>
10</head>
11
12<body>
13<form id='the_form' method='get' action='jqform.html'>
14 <input id="f_inp" type="text" name="esn" value=""/>
15</form>
16<a id='form_button'>Click to submit</a>
17</body>
18</html>