Document directory
6.1 method)
6.2 Event)
6.3 data)
I did not pay attention to some methods and techniques for encapsulating plug-ins when I wrote js in the past. Now I want to translate the jquery document, while I am studying it myself, I
Let's complete the previously disassembled functions first!1. Transparent layer (display and hide)The key is to set the following styles at the same time to make the mainstream browsers realistic and transparent.
Filter = 'Alpha (Opacity = 50
NetEase and beauty have a login effect. Let's complete the previously disassembled functions first! 1. The key to the transparent layer (Display and hide) is to set the following styles at the same time to make the mainstream browsers realistic and
First contact with jquery1. OverviewJQuery, a JavaScript library, has brought great convenience to JavaScript development. It has the following benefits: It reduces the amount of JavaScript code, separates JavaScript and HTML, only needs to define
JQuery syntax example $ (this). hide () demonstrates the jQuery hide () function to hide the current HTML element. $ ("# Test"). hide () demonstrates the jQuery hide () function to hide the element id = "test. $ ("P"). hide () demonstrates the
The advantage of chained calling is that the Code is concise and easy to read, reducing the repeated use of the same variable multiple times. The most common is in the jquery library, for example:
$ ('# Id'). Show (). Hide ();(Of course, this call
Teach you how to develop chrome extension 1: Developing chrome extenstion is actually very simple
Teach you how to develop chrome extension 2: Add behavior for HTML
How to Develop chrome extension 3: about local storage data
In the
Copy Code code as follows:
Returning DOM elements by ID
var $ = function (ID) {return document.getElementById (ID);}
Returns the current CSS value of a DOM element
var getcss = function (obj,name) {
Ie
if (Obj.currentstyle) {
As mentioned earlier, a function object can be passed as a parameter to another function, when the function as a parameter is executed internally, then it is a callback function (Callback):function Writecode (callback) { //do something ...
Popular PracticeThe common practice now is to change the value by using the Onfocus/onblur event of the form element, as follows:
The code is as follows
Copy Code
Most of jquery's Watermark Plug-ins
Same point
Different points
Jqueryextend
Jqueryfnextend
code example
Same pointBoth are used to extend jquery and to add methods to jquery, which are often used in the development of
Question: Queue () method?Tip0:jquery does not support the toggle () method from above version 1.9.// $ ("#panel h5.head"). Toggle(function () {// ... // },function () {/ /// });The above does not support! The following support//
Relationship between the visibility selector of JQuery and show and hide
The visibility selectors in JQuery refer to: selectors: hidden and: visible. In the previous article, we mentioned the difference between display and visibility. In this
JQuery chain call and show knowledge analysis, jquery chain
The previous article introduced the jQuery framework. For more information about jquery, see.
JQuery has been used for a long time, but some APIs cannot be implemented. The following
Install
The jQuery library is a JavaScript file. You can use the HTML
If you do not want to download and store jQuery, you can also reference it through CDN (Content Delivery Network ).
Google CDN:
Microsoft
The extension of jquery plug-ins and methods is very powerful, which can save a lot of development time. This article provides an overview of basic jquery plug-in development knowledge, best practices, and common traps.Directory
1 entry
2
I. jquery Syntax:
$ (Selector). Action ()
Dollar sign defines jquery
Selector: "query" and "Search" HTML elements
Jquery action () executes operations on Elements
Example
$ (This). Hide ()-hide the current element
$ ("P"). Hide ()-hide all
View the Code directly:
Copy codeThe Code is as follows:
I am the content in the Dom object
Copy codeThe Code is as follows :/** Author: Peng Baiyang 2009.10.24* Function: a custom string and Dom object can be displayed. The animation is
In the past, we developed ajax, which is used for custom development like google's Automatic completion function. Now jquery is much more convenient, and he provided us with jQuery Autocomplete Automatic completion plug-in code, let's take a look at
Jquery hide details and instance code this article tells you how to use jquery to display the jquery instance code of the hidden layer. the show hide function is used to hide the display, and the example illustrates these problems.
Jquery hide
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.