Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
3e3240f7
Commit
3e3240f7
authored
Dec 11, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed docs for #134
parent
665e1959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
event.js
src/event/event.js
+10
-6
No files found.
src/event/event.js
View file @
3e3240f7
...
@@ -228,9 +228,11 @@ new function(){
...
@@ -228,9 +228,11 @@ new function(){
/**
/**
* Bind a function to the submit event of each matched element.
* Bind a function to the submit event of each matched element.
*
*
* @example $("p").submit( function() { alert("Hello"); } );
* @example $("#myform").submit( function() {
* @before <p>Hello</p>
* return $("input", this).val().length > 0;
* @result <p onsubmit="alert('Hello');">Hello</p>
* } );
* @before <form id="myform"><input /></form>
* @desc Prevents the form submission when the input has no value entered.
*
*
* @name submit
* @name submit
* @type jQuery
* @type jQuery
...
@@ -242,9 +244,11 @@ new function(){
...
@@ -242,9 +244,11 @@ new function(){
* Trigger the submit event of each matched element. This causes all of the functions
* Trigger the submit event of each matched element. This causes all of the functions
* that have been bound to thet submit event to be executed.
* that have been bound to thet submit event to be executed.
*
*
* @example $("p").submit();
* Note: This does not execute the submit method of the form element! If you need to
* @before <p onsubmit="alert('Hello');">Hello</p>
* submit the form via code, you have to use the DOM method, eg. $("form")[0].submit();
* @result alert('Hello');
*
* @example $("form").submit();
* @desc Triggers all submit events registered for forms, but does not submit the form
*
*
* @name submit
* @name submit
* @type jQuery
* @type jQuery
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment