JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
  <html>
  <head>

  </head>
  <body>
   <form name="form1" id="form1" method="post">

     State: <select id="state ID">
               <option></option>
               <option value="ap">ap</option>
               <option value="bp">bp</option>
            </select>
   </form>

   <table><tr><td id="Save">click</td></tr></table>
      
  <script>

   document.getElementById("Save").addEventListener('click',function ()
    {
     alert("hello");
     //validation code to see State field is mandatory.  
    }  ); 
      
       document.getElementById("Save").addEventListener('click',  function f1()
    {
       alert("f1 called");
       //form validation that recalls the page showing with supplied inputs.    
    }
 ); 

  
  </script>

   </body>
   </html>