Common jquery operations

Source: Internet
Author: User

Common jquery operations
Page load method $ (). ready (function (){

}) Div hide operation // whether div hides function isHideMenu (){
Return $ ("# menuContent"). is (": hidden ")
}
// Hide divmainFrameset. hide ();
// Display divmainFrameset. show ();


Get object // get $ ("# menuContent") by id ");
// Obtained through class
$ (". MenuContent ");

Property setting // set value $ ("# menuContent"). val ("value ");
// Set css $ (". handle "detail .css (" marginLeft ", 5); // sets the attribute $ (" img "). attr ("width", "180 ");

What plug-ins are commonly used in jquery? What are their respective functions?

Ajax File Upload. Upload Component www.phpletter.com/Demo/AjaxFileUpload-Demo/
JQuery Validation. Verification Framework bassistance.de/...ation/
JQuery-Form.form framework www.aqee.net/..n.html
Jquery ui component jqueryui.com/
Too many are commonly used ~~ It's good to search online for routine use ~~ Pai_^

JQuery

JQuery (function () {}), jQuery (). ready (function (){})
Bind a click event: jQuery ('# temp'). click (function (){});
Filter: jQuery ('# temp [type = "checkbox"]'). prop ('Disabled ', false); the function of this statement is to disable all the sub-objects of the check box whose id is temp.
In fact, jQuery is really powerful. If you have time, you can look at jQuery's help documentation ..
Thank you!

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.