Skip to main content

Bug Tracker

Side navigation

Ticket #5722: ticket5722.html
File ticket5722.html, 0.7 KB (added by s.baronnet, December 28, 2009 10:07PM UTC)
<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><title></title>
<script language="javascript" src="http://localhost:2222/js/jquery.js"></script>
<script>
$(function(){
	$('form').live('submit',function(){
		$('#place').html('submit override fired!');
		return false;
	});
	
});
</script>
</head>
<body>
<form action="test.cgi" method="get">
<input type="test" id="test" name="test" value="123"/>
<button type="submit">this submit button works</button><br/>
<div onclick="$(this).parent().submit()">this onclick="$(this).parent().submit()" submit will not work correctly (return false does not prevent normal form submit) :(</div>
</form>
<div id="place"></div>
</body>
</html>

Download in other formats:

Original Format