Highly adaptive super simple method, also need not write what Judge browser height, width what.
Here are two ways to do it. One is placed on the same page as the IFRAME, one is placed on the test.html page.Be careful not to put the wrong place.
jquery Gets the value selected by select
Gets the value selected by select:
$ ("#ddlRegType"). Val ();
Take a look at the example below
The code is as follows
Copy Code
Properties Private Public
Has not remembered how long has not written, the recent state is also good, because of various examination's sake, many technical articles are looked, did not write to above. Amazon has bought some H5,CSS3 and mobile internet development books, such
One, based on the jquery pop-up layer instance
First look at the example
The code is as follows
Copy Code
pop box Demo by paperenPOP pop box is it cool?
Analyze the above example
In fact, this effect is
Is (': Checked ') is a very useful jquery method that can quickly determine whether a multiple-selection object is selected.
The following examples illustrate:
The code is as follows
Copy Code
1-6-1 I have read the
Suppose the address of the page is this way. /p/165, then I'm going to get the last number 165, which can be done by this code
The code is as follows
Copy Code
var url= window.location.href;var index = url.substring (Url.
about Tabulous.js
Tabulous.js is a tab-tab switching feature of the JQuery plugin, lightweight plug-ins, simple and easy to use. The tab tag that it generates can be used to customize styles from CSS, and it also offers a variety of switching
The effect is to drag the scroll bar, and once the area of the screen scrolling exceeds the area where the element is located, the element is anchored to the top, and the screen scrolls along the top.
Such programs in some sites can significantly
Super power jquery without refreshing add Delete, in the application of PHP, add and delete is common, such as uploading pictures, if one is not enough, then the following can add an upload button, two upload button ... and so on, and then upload,
jquery is related to visibility by choosing between two: Hidden//Is hidden: Visible//Is visibleAs for the difference between the two is no need to say more.
How to use
Html
The code is as follows
Copy Code
Effect as shown below
The implementation code is as follows.
The code is as follows
Copy Code
CSS file
The code is as follows
Copy Code
HTML code
The code
First look at the effect picture
Code Analysis CSS file as long as you save it as a CSS file
The code is as follows
Copy Code
ul,li{margin:0;padding:0;}Img{border:none;}UL Li{list-style:none;}#idSlider, #idSlider
First look at the effect chart, I use red box up the left and right button.
Now let's analyze the code, which is a CSS file.
The code is as follows
Copy Code
ul,li{margin:0;padding:0;}img {border:none;}UL
Slide switch from left to right a bit like reading the same effect, a lot of mall is using this, we first look at the effect of the picture.
Let's switch the effect as follows
Yes, here's what you can do to analyze the implementation code.
We can go to
Home: Http://aquantum-demo.appspot.com/file-upload
Download: https://github.com/blueimp/jQuery-File-Upload
Example: Http://aquantum-demo.appspot.com/file-upload
To let file in each browser display unified, pure style has not been
Look at the effect chart first
The code is as follows
Copy Code
simple and practical orange background Pull-down level two navigation menu and -->Preview the effect of the bottom left corner will be prompted with
The code is as follows
Copy Code
scalable vertical down-pull navigation menu and -->Preview the effect of the bottom left corner will be prompted with errors, and can not see the effect, refresh to see the effect of, of course, in
Function prototypes: $.post (URL, params, callback)
URL is the address of the submission, eg: "Sample.ashx"
Params is a parameter, eg: {name: "XXX", ID: "001"}
Callback is a callback function, Eg:function (msg) {alert (msg);
Note 1: In the
Css
The code is as follows
Copy Code
Implementation code
The code is as follows
Copy Code
$ (document). Ready (function () {Color change for each line$ (' Table tr:odd '). addclass (
JQuery (': Not (selector) ')In earlier versions of jquery, the not () filter only supported a simple selector, stating that we passed in: not the selector in the filter can be arbitrarily complex, for example: not
The code is as follows
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