JSFiddle - React, Tailwind, and code Playground

by eddiemonge

JavaScript

$('#box1').change(function() {
    $.post(
        "data.php", 
        { box: $(this).val() },     
        function(output) {
            $('#div1').hide().html(output).show();
        }
    );
});