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!