Bug Tracker

Ticket #4930: onsubmit-jquery-issue.html

File onsubmit-jquery-issue.html, 749 bytes (added by nbelaevski, 12 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4        <head>
5                <script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
6        </head>
7        <body onload="alert('page loaded'); /* indicates page reload */">
8                <form onsubmit="return confirm('sure to submit?')"> 
9                        <input type="submit" />
10                        <a href="#" onclick="jQuery('form').eq(0).trigger('submit')">Click to submit by jQuery</a>
11                </form>
12                <div onclick="alert('clicked')"> 
13                        click me
14                </div>
15                <a href="#" onclick="jQuery('div').eq(0).trigger('click')">Click to fire "click" event using jQuery</a>
16        </body>
17</html>