JSFiddle - React, Tailwind, and code Playground

by farazshaikh

HTML

<!DOCTYPE html>
<html lang="en">
  <body>
    <form id="robby">
      <input type="button" onclick="alert(document.forms[0].id);" value="robby's form" />
    </form>
    <script defer>
      console.log(document.forms);
    </script>
  </body>
</html>