JSFiddle - React, Tailwind, and code Playground

by profithing

HTML

<button type="button" id="searchbutton">Click Me!</button> 
<div id="resultsdiv"></div>

JavaScript

$(document).ready(function() {

    $("#searchbutton").bind('click', function() {
        $("#resultsdiv").load(
            'http://profithing.com/wp-content/php/sorting.php',
            { // parameters, in object literal format
               sortDir: 'asc',
               sortCol: 'name'
               // etc.
            }
    });

});