Bug Tracker

Ticket #5722: ticket5722.html

File ticket5722.html, 731 bytes (added by s.baronnet, 10 years ago)
Line 
1<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html><head><title></title>
3<script language="javascript" src="http://localhost:2222/js/jquery.js"></script>
4<script>
5$(function(){
6        $('form').live('submit',function(){
7                $('#place').html('submit override fired!');
8                return false;
9        });
10       
11});
12</script>
13</head>
14<body>
15<form action="test.cgi" method="get">
16<input type="test" id="test" name="test" value="123"/>
17<button type="submit">this submit button works</button><br/>
18<div onclick="$(this).parent().submit()">this onclick="$(this).parent().submit()" submit will not work correctly (return false does not prevent normal form submit) :(</div>
19</form>
20<div id="place"></div>
21</body>
22</html>