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>
<input name="nationality" type="text" value="Chinese">
<input name="nation" type="text" value="English">
<input name="country" type="text" value="Germany">
<input name="anothernation" type="text" value="Norwegian">

JavaScript

$(document).ready(function(){
	$("input[name*='nation']").css("background-color", "yellow");
	// input 1, 2 và 4
});