Jquery-events Event-click __jquery

Source: Internet
Author: User
jquery-events Event-click

jquery supports the Click event that binds HTML elements, and the first parameter of the function is the event object, in IE, using event.srcelement to get the object that triggers the event, and in Firefox, using the Event.target gets the object that triggered the event, and jquery does not encapsulate the event. To avoid judging browser types, you can use the this variable. Click ()-Overview Overview Triggers the click event of each matched element.
Triggers a click event for each matching element.
Causes all of the "functions" have been bound to "click event to" executed. Click ()-Examples-code To trigger the "click event on" the "Paragraphs on" page:

$ ("P"). Click ();
Click (FN)-OverviewBinds a function to the click event of each matched element.
A click event that binds the function to each matching element.
The Click event fires when the pointing device button was clicked over an element. A click is defined as a MouseDown and MouseUp on the same screen location. The sequence of these events Is:mousedown MouseUp click Click(FN)-DemoTo hide paragraphs on a page they are clicked:
 <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" 
"Http://www.w3.org/TR/html4/loose.dtd
<script src= "Http://code.jquery.com/jquery-latest.js" ></ Script>
<script>
$ (document). Ready (function () {

$ ("P"). (function () {
$ (this). Slideup ();
});
$ ("P"). Hover (function () {
$ (this). addclass ("Hilite");
, function () {
$ (this). Removeclass ("Hilite");
});

});
</script>
<style>
p {color:red; margin:5px; cursor:pointer;}
P.hilite {background:yellow;}
</style>
<body>
<p>first paragraph</p>
<p>second Paragraph</p>
<p>yet One more paragraph</p>
</body>
Click(FN)- Arguments:- fnFN Function
[Events/click-documents]Http://docs.jquery.com/Events/click
[IE's onclick event Document]Http://msdn2.microsoft.com/en-us/library/ms536913.aspx
[Firefox Event object document]Http://developer.mozilla.org/en/docs/DOM:event
[jQuery-official website]http://jquery.com/ [JQuery-current version]http://docs.jquery.com/Release:jQuery_1.2 [jQuery-Other download address]Download list, Http://docs.jquery.com/Downloading_jQuery
Latest code, Http://code.jquery.com/nightlies/jquery-nightly.js
[jQuery-related forum]Http://groups.google.com/group/jquery-en
http://WebDev.board.newsmth.net/
http://WebGeeks.board.newsmth.net/
http://bbs.pku.edu.cn/, homepage look at the version
http://forum.csdn.net/SList/JavaScript/
[jQuery-keywords]Jquery
[Jquery-core Core]Each iteration, Http://docs.jquery.com/Core/each
JQuery, Http://docs.jquery.com/Core/jQuery
[Jquery-ajax]jquery's Ajax documentation, Http://docs.jquery.com/Ajax/jQuery.ajax
jquery Ajax options, http://docs.jquery.com/Ajax/jQuery.ajax#options
DataType options, setting the return value type
Timeout option, for setting timeouts
Integration with PHP can use Json_encode to return results, http://www.php.net/manual/zh/function.json-encode.php

ReadyState get the current status of the request operation, http://msdn2.microsoft.com/en-us/library/ms534361.aspx [jQuery-effects]

jquery fade effect, http://docs.jquery.com/Effects/fadeIn [jquery-selectors selector] form element selector, http://docs.jquery.com/ Dom/traversing/selectors#form_selectors
Attribute Equality Selector, http://docs.jquery.com/Selectors/attributeEquals
Checked selected, http://docs.jquery.com/Selectors/checked

: Input matches all input, textarea, select, and button elements, and the http://docs.jquery.com/Selectors/input selector selects the title tag that appears in the body. will appear and expect a different effect.

element matches all elements by the specified name, http://docs.jquery.com/Selectors/element [Jquery-attributes Property]

Val gets the contents of the first matching element value property, Http://docs.jquery.com/Attributes/val [jquery-common functions] attr access to custom attributes, Reduce the coupling of code and data in JavaScript scripting
filter, for filtering elements in the collection
[jquery-events event] hover, http://docs.jquery.com/Events/hover
Submit Submission, Http://docs.jquery.com/Events/submit

Focus responds to focal events for each matching element, Http://docs.jquery.com/Events/focus

Click to trigger the click event for each matching element, the binding function to the Click event for each matching element, Http://docs.jquery.com/Events/click [jquery-traversing traversal] filter filter, Http://docs.jquery.com/Traversing/filter
Find lookup, Http://docs.jquery.com/Traversing/find
strong> [jquery-tutorials Tutorial]
Introducing $ (document). Ready (), Http://docs.jquery.com/Tutorials:I Ntroducing_%24%28document%29.ready%28%29 [jquery-plugins plugin] easing animation, http://jquery.com/plugins/ Project/easing
Jcarouselite, merry-go effect, Http://jquery.com/plugins/project/jCarouselLite
Tablefilter, table filter, HTTP ://jquery.com/plugins/project/tablefilter
Rounded corner rounded rectangle, http://docs.jquery.com/Tutorials:Rounded_ Corners#rounded_corners_without_images
[jquery-utilities utility] trim removes the spaces before and after the string, http:// Docs.jquery.com/utilities/jquery.trim [jquery-reference] http://www.json.org/, http://www.json.org/ Json.js

JScript (Windows Script Technologies):, http://msdn2.microsoft.com/en-us/library/hbxc2t98.aspx

Prototype property (JScript 5.6):, http://msdn2.microsoft.com/en-us/library/f5s9ycex.aspx

parseint Method (JScript 5.6):, http://msdn2.microsoft.com/en-us/library/x53yedee.aspx

ToString method (JScript 5.6):, http://msdn2.microsoft.com/en-us/library/k6xhc6yc.aspx

HTTP Status codes (Windows):, http://msdn2.microsoft.com/en-us/library/Aa384325.aspx

Html+time: http://msdn2.microsoft.com/en-us/library/ms533112.aspx

Hta:application object, http://msdn2.microsoft.com/en-us/library/ms536495.aspx

About Cross-frame Scripting and security: about cross-framework scripting and safety, http://msdn2.microsoft.com/en-us/library/ms533028.aspx

How to builds tables dynamically: How dynamically build Tables, http://msdn2.microsoft.com/en-us/library/ms532998.aspx

Filter property (Tabular Data Control):-Filter properties (Tabular database controls), http://msdn2.microsoft.com/en-us/library/ms531364.aspx

[JQuery-composite example]

Achieve the previous and the last effect

Calling functions across Windows

Timed Refresh

Drop-down list box to open a specified Web site generates random numbers between two boundaries

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.