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

JavaScript Strengthening Tutorial - Writing Your First jQuery Program

黄舟
Release: 2017-01-21 16:07:10
Original
1119 people have browsed it

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>
Copy after login

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template