JSFiddle - React, Tailwind, and code Playground

by Santosh Thakur

HTML

<input type="button" value="Submit button">

CSS

input {
  padding: 5px;
}

JavaScript

function abc() {
  //alert('san');
  if ($('input').prop('disabled') == 'false') {
    alert();
    $('input').prop('disabled', true);
    $('input').css('background', 'red');
  }
}

$('input').click(abc);