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 title="Tomorrow">This is a paragraph.</p>

<p title="tomorrow">This is a paragraph.</p>

<p title="Tom">This is a paragraph.</p>

<p title="See You Tomorrow">This is a paragraph.</p>

<p title="Tomorrow-the day after today">This is a paragraph.</p>

JavaScript

$(document).ready(function(){
	$("p[title~='Tomorrow']").css("background-color", "yellow");
// p 1 và 4
});