JSFiddle - React, Tailwind, and code Playground

by japaneselanguagefriend

HTML

<form action="demo_form.asp">
  <input type="text" name="first_name" value="" id="freeform_first_name"
    maxlength="150">
  <input type="submit">
</form>

JavaScript

$(function(){
       $("input").prop('required',true);
});