I haven't used jquery for a long time. Some functions are forgotten. Here I will look at how jquery looks for elements. Review
// Html
Xx
Aa
Bb
// Js
$ ('. Dv'). find ('ul ')-> eq (0)-> find ('lil')-> each (function (I )
After the project is generated today, it is published to the World Wide Web for testing. It is found that the interlace of table is changed to IE8, And the chorem cannot be normally displayed. After looking for a lot of information, CSS cannot solve
This is a commonly used method in jQuery. Their two functions are completely different, and beginners are often misled. First, let's look at the. find () method:
There is a page in which the HTML code is;
The Code is as follows:
Test 1
In js, we often use location. href to redirect pages. To help us write functions. The following describes the implementation of the following code. The following content is a post:
Code
The Code is as follows:
Send a code for the Baidu window. The code for the video advertisement in the lower right corner of Js is obtained from the Baidu website without any modification. It is original. Copy the Code if necessary.
window in the lower right corner , see
I wrote about the switching effect of an image randomly. It seems that doctype has a problem with the style below html4.01. The following code is a reference for anyone learning jquery.
Html code:
Code
The Code is as follows:
A small plug-in based on jQuery that is used to change the color of the line and move the mouse to change the color. For more information about jquery, see. Table HTMLElement Effect
The Code is as follows:
Var br_cc = (function (){Var setEffect =
When $. ajax is used, an error occurs only in IE7. IE6 and IE8 are normal. Problem: a BUG in the jQuery Control
When $. ajax is used, an error occurs only in IE7. IE6 and IE8 are normal. The error message is as follows:
Description on the official
There are many jQuery plug-ins. One of the most important plug-ins is jQueryValidation, which is used to verify the form and go to the jQuery official website. However, the strange thing is that it seems a little strange recently, because it seems a
We know that the sort method of the array can sort the array elements. By default, the elements are sorted in the ASCII alphabetic order. If you want to sort by other sequence, you need to provide a comparison function as a parameter for the sort
Again, the project uses ie's userdata. If you do not use the flash plug-in to store some simple chat records about userdata, click here.
Again, the project uses ie's userdata. When the user does not use the flash plug-in to store some chat
Sina Netease's comment block is made because images cannot be placed in textarea, so like Sina's practice, use iframe to put the content, and then hide a textarea for submission. As follows:
Technical points:
1. Because images cannot be placed in
In the process of writing JS jump statements, the location. href statement is incompatible with Firefox and uses a js to jump to by clicking a button. The statement is very simple:
During the test, it was found that it could be used in IE,
JQuery is a very good framework. It is convenient and convenient to use JQuery to submit data in a specific scenario. However, Chinese data becomes garbled during AJAX submission of a GB2312-encoded website. Symptoms:
1) In Firefox, the processing
By default, the label element is used to display the verification prompt information and css class is added, css allows you to easily set error controls and display methods of error messages.
/* Input control verification error */
Form input. error
Discussing a topic about the basic js theory may not be of much help to you in the application of skills, but it may give you some inspiration. If you really understand how Javascript Functions are called, you can avoid bugs;
First, let's create a
One of jQuery's biggest features is method concatenation, which makes reading easier. As a result, a large number of concatenation methods are used in daily development, and event Method concatenation is a special case. If you bind multiple events
Jquery. photoFrame is a convenient Photo Frame plug-in. The principle is also very simple. You can wrap the selected object with a nine-square-lattice table and then set the background image of its border. All three styles are implemented using
Some common verification scripts // mobile phone number verification
JQuery. validator. addMethod ("mobile", function (value, element ){
Var length = value. length;
Var mobile =/^ (13 [0-9] {1}) | (15 [0-9] {1}) + \ d {8}) $/
Return this. optional
Jquery obtains ASP. NET server-side controls dropdownlist and radiobuttonlist generate the value and text value after the client HTML Tag-and obtain the dropdownlist text (ddlList is the ID of the server-side dropdownlist, generate the select tag
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