JSFiddle - React, Tailwind, and code Playground

by icntfan

HTML

<!DOCTYPE html>
<html>
<head>
  <style>
  textarea { height:25px; }
  </style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <form>
    <input type="button" value="Giriş Düğmesi"/>
    <input type="checkbox" />

    <input type="file" />
    <input type="hidden" />
    <input type="image" />

    <input type="password" />
    <input type="radio" />
    <input type="reset" />

    <input type="submit" />
    <input type="text" />
    <select><option>Seçenek</option></select>

    <textarea></textarea>
    <button>Buton</button>
  </form>
  <div id="messages">
  </div>
<script>

    var allInputs = $(":input");
    var formChildren = $("form > *");
    $("#messages").text("Bulunan " + allInputs.length + " adet input ve formda " +
                             formChildren.length + " tane çocuk var.");
            
    // so it won't submit
    $("form").submit(function () { return false; }); 

</script>

</body>
</html>