JSFiddle - React, Tailwind, and code Playground

by Trần Ngọc Minh

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<p>This is the first paragraph.</p>

<h3>This is the heading </h3>

<p>This is the second paragraph.</p>

<p>This is the third paragraph.</p>

<p>This is the last paragraph.</p>

JavaScript

$(document).ready(function(){
 $("p:lt(2)").css("background-color", "yellow");
});