JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>

  <script src="https://code.jquery.com/jquery-1.10.2.js"></script>

<body>
 
<input class="pre-1">
<input class="pre-2">
<input class="pre-3">
 
<script>
$( "input[class^='pre-']" ).val( "news here!" );
</script>
 
</body>