Skip to main content

Bug Tracker

Side navigation

Ticket #4930: onsubmit-jquery-issue.html

File onsubmit-jquery-issue.html, 0.7 KB (added by nbelaevski, July 20, 2009 06:57PM UTC)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
		<script src=""></script>
	<body onload="alert('page loaded'); /* indicates page reload */">
		<form onsubmit="return confirm('sure to submit?')"> 
			<input type="submit" />
			<a href="#" onclick="jQuery('form').eq(0).trigger('submit')">Click to submit by jQuery</a>
		<div onclick="alert('clicked')"> 
			click me
		<a href="#" onclick="jQuery('div').eq(0).trigger('click')">Click to fire "click" event using jQuery</a>

Download in other formats:

Original Format