Home >Web Front-end >JS Tutorial >JavaScript Strengthening Tutorial - Writing Your First jQuery Program

JavaScript Strengthening Tutorial - Writing Your First jQuery Program

黄舟
黄舟Original
2017-01-21 16:07:101112browse

JavaScript Enhancement Tutorial - What is JQ about writing the first jQuery program?
jQuery is a JavaScript library.
jQuery greatly simplifies JavaScript programming.
jQuery is easy to learn.
A simple JQ program!

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("p").click(function(){
  $(this).hide();
  });
});
</script>
</head>

<body>
<p>If you click on me, I will disappear.</p>
</body>

</html>

The above is the JavaScript intensive tutorial - writing the first jQuery program. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn