JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<!doctype html>
<html lang="en">
<body>
  <input type="button" id="submit" value="Submit" class="btn">
</body>
</html>

CSS

.btn {
  font-size: 14px;
  margin: 8px;
  padding: 0 15px;
}

JavaScript

$(document).ready(function() {
  $('#submit').click(function() {
    $(this).prop('value', 'Processing...');
  })
});