THE WORLD'S LARGEST WEB DEVELOPER SITE

jQuery Tutorial

jQuery is a JavaScript Library.

jQuery greatly simplifies JavaScript programming.

jQuery is easy to learn.

Start learning jQuery now »

示例 in Each Chapter

With our online editor, you can edit the code, and click on a button to view the result.

Example

$(document).ready(function(){
  $("p").click(function(){
    $(this).hide();
  });
});
来试试吧 »

Click on the "来试试吧" button to see how it works.


jQuery 练习

Test Yourself With 练习

Exercise:

Use the correct selector to hide all <p> elements.

$("").hide();

Start the Exercise



jQuery 示例

Learn by examples! At W3Schools you will find a lot of jQuery examples to edit and test yourself.

See All jQuery 示例

jQuery测验 Test

Test your jQuery skills at W3Schools!

Start jQuery测验!

jQuery 参考

At W3Schools you will find a complete reference of all jQuery selectors, methods, properties and events.

jQuery参考

jQuery Exam - Get Your Diploma!

W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 25 000 certificates already issued!

Get Your 证书 »

The HTML证书 documents your knowledge of HTML.

The CSS证书 documents your knowledge of advanced CSS.

The JavaScript 证书 documents your knowledge of JavaScript and HTML DOM.

The Python 证书 documents your knowledge of Python.

The jQuery证书 documents your knowledge of jQuery.

The SQL证书 documents your knowledge of SQL.

The PHP 证书 documents your knowledge of PHP and MySQL.

The XML 证书 documents your knowledge of XML, XML DOM and XSLT.

The Bootstrap 证书 documents your knowledge of the Bootstrap framework.




W3Schools is optimized for learning, testing, and training. 示例 might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2020 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.

W3Schools.com