100 Days of DevOps — Day 97-Introduction to JQuery

Prashant Lakhera
May 24 · 3 min read

//Vanilla

var testvar = document.querySelectorAll(‘p’)

//jQuery

var testvar = $(‘p’)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery Introduction</title>
<script
src="https://code.jquery.com/jquery-3.1.1.js"
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
crossorigin="anonymous"></script>
</head>
<body>
<h1>This is an Introduction to jQuery</h1>
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ol>
<a href="https://code.jquery.com/">jQuery</a>
<input type="text" name="Name" value="What is your name">
<input type="button" name="ClickMe" value="ClickMe">
</body>
</html>
Selecting via jQuery

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade