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参考

Kickstart your career

Get certified by completing the course

Get started w3schools CERTIFIED . 2021




W3Schools is optimized for learning and training. 示例 might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by W3.CSS.

W3Schools.com