JSFiddle - React, Tailwind, and code Playground

by ariehg

HTML

<form id='a' action='javascript:;'>
    <input type='text' name='html' />
    <input type='submit' />
</form>
<div id='res'></div>

JavaScript

$('a').addEvent('submit',function(){
    var req = new Request.HTML({
         url : '/echo/html/'
        , append : $('res')
    }).post($('a'));
});