JSFiddle - React, Tailwind, and code Playground

by Bahman ParsaManesh

HTML

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>val demo</title>
  <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
 
<p>Type something and then click or tab out of the input.</p>
<input type="text" value="type something">
<input type="text" value="type something">
 
<script>
$( "input" ).on( "blur", function() {
  $( this ).val(function( i, val ) {
  	console.log($( this ).val(function( i, val )));
    return val.toUpperCase();
  });
});
</script>
 
</body>
</html>