Side navigation
Ticket #6667: testcase.html
File testcase.html, 0.4 KB (added by salomvary, June 14, 2010 03:41PM UTC)
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.js"></script>
<script>
jQuery(function() {
var first = 'body';
var second = 'body';
jQuery(first).delegate('foobar','click', jQuery.noop);
jQuery(second).delegate('form','submit', function(){
alert('submit');
return false;
});
});
</script>
</head>
<body>
<form>
<input type="submit" name="submitted"/>
</form>
</body>
</html>
Download in other formats:
Original Format
File testcase.html, 0.4 KB (added by salomvary, June 14, 2010 03:41PM UTC)
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.js"></script>
<script>
jQuery(function() {
var first = 'body';
var second = 'body';
jQuery(first).delegate('foobar','click', jQuery.noop);
jQuery(second).delegate('form','submit', function(){
alert('submit');
return false;
});
});
</script>
</head>
<body>
<form>
<input type="submit" name="submitted"/>
</form>
</body>
</html>