(1) Required:true must be lost field(2) Remote: "check.php" use Ajax method to invoke check.php validate input value(3) Email:true must enter the correct format email(4) Url:true must enter the URL in the correct format(5) Date:true must enter a
Get Content-text (), HTML (), and Val ()
Three simple and practical jQuery methods for DOM operations:
Text ()-Sets or returns the textual content of the selected element
HTML ()-Sets or returns the contents of the selected element (including
Copy Code code as follows:
//--------------------------------------------
Delete the thousand points.
//--------------------------------------------
function Removecomma (number) {
var num = number.replace (new RegExp (",", "G"), "");
if
"Window.location.href", "location.href" is this page to jump
"Parent.location.href" is a page jump from the previous layer
"Top.location.href" is the outermost page jump
An example is provided:
If A,b,c,d is Jsp,d is C iframe,c is B iframe,b
Solution Idea:
1, first get to the current JS file src attribute, here's a tip: we just need to get the last script tag on the current page.
Why?? Because JS is the sequence of parsing, the current JS script parsing after the JS has not yet
Registration GA, GA will generate a section of JS script, a lot of people directly to copy this JS to the last side of the finished (including Blog Park, CSDN, Blogjava). But GA automatically generated this section of JS is really the most
1:eq (Index) method
To get the nth element, the position of the element begins at 0, and the syntax is as follows: EQ (index)
Get the 3rd table and set its background color to "#FCF" with the following code: $ ("TD"). EQ (2). CSS ("Background",
Scalable packaging to facilitate the implementation of different effects, the source code gives the fade effect (fade function), and the removal effect (move function) implementation.A word function call, realize the picture switch effect.Picchange (
Copy Code code as follows:
switch Logo images
Switching LOGOS
It also uses the Jsql DOM element insert operation:
Copy Code code as follows:
' CREATE Table Logolist '. Fordom (). ExecuteSQL ();
Written for so long JS application I actually did not know these two events so went to Google to search for some. Only to discover that these two events are so excellent and easy to use ... But the search process found that many people do not seem
Initially thought it was very simple, add an input checkbox in option. Did not work, online search some implementation methods, mainly using a div layer to simulate the dropdown. I would like to follow this idea, and then combined with the project
Directly on the code:
Copy Code code as follows:
jquery implementation of the Tree list menu (menu trees)
HomeproductsFlashgunsTripodsFiltersservicesPrintingphoto framingRetouchingArchiving
The jquery
When you need to quickly end a currently executing jquery animation (not done yet), such as fadeout (), you can perform a stop (true) on the object that executes the current animation;
Such as:
Copy Code code as follows:
Using the TP 3.2 framework
Public Function Add_post () {
//validation rule
$rule =array (
Array (' name ', ' Require ', ' Please enter name ', 1),//must verify name
);
$m =m (' user ');
Gets the name,sex,contact data to the model and verifies
Configuration of open Vhost in 1.apache configuration fileLoadModule Vhost_alias_module modules/mod_vhost_alias.so
Include conf/extra/httpd-vhosts.conf
The httpd-vhosts.conf in the 2.extra directoryInside to configure, there are three: the first
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