Skip to main content

Bug Tracker

Side navigation

Ticket #4672: submit.html


File submit.html, 0.4 KB (added by oconnor0, May 19, 2009 10:47PM UTC)

Test HTML displaying differing event handling

<html>
<body>
<form method='post' enctype='multipart/form-data' id='upload'>
<input type='file' name='f'>
<input type='submit'>
</form>
<script src='jquery-1.3.2.min.js'/>
<script>
$(function() {
	document.getElementById('upload').onsubmit = function() { window.alert('document.getElementById submit'); };
	$('#upload').bind('submit', function() { window.alert('$("#upload").bind submit'); });
});
</script>
</body>
</html>

Download in other formats:

Original Format