JSFiddle - React, Tailwind, and code Playground

by petersendidit

HTML

<div class="form">
 <fieldset>
  <p>
   <input type="foo" title="bar" />  //<- select all like this, with title
  </p>
  <p>
   <input type="foo" />
  </p>
 </fieldset>
</div>
 
<div class="other">
 ... code ...
</div>

JavaScript

$(".form [title]").css("border", "2px solid red");