JSFiddle - React, Tailwind, and code Playground

by jamietre

HTML

<input type="checkbox"> Check me.
<div style="clear:both;">
Pick something: <select>
    <option value="1">Option 1
    <option value="2">Option 2
    <option value="3">Option 3
</select>
<div style="clear:both;">
Enter something:
    <div style="clear:both;">
        <textarea style="width:200px; height: 100px;"></textarea>

JavaScript

$(document).ready(function() {
    $('input:checkbox').click(function() {
  alert("val="+$(this).val()+",checked="+$(this).attr('checked'));
    });
    $('select, textarea').bind("change",function() {
        alert("val="+$(this).val()); 
    });

});