JSFiddle - React, Tailwind, and code Playground

HTML

<form id="form">
    <input type="text" name="html" id="html" />
    <input type="image" src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png" />
    <input type="submit" style="display:none" />
</form>

JavaScript

$("#form").bind('submit', function(e) {
    var $div = $("<div>Transmitting</div>").appendTo('body');
    $.ajax({
        url: '/ajax_html_echo/',
        data: {html: $("#html").val() },
        type: 'POST',
        success: function(data) {
            $div.html("Received: "+data);
        }
    });
    return false;
});