h2   REST Client div.uk-grid div.uk-width-1-1 div.uk-panel.uk-panel-box h3.uk-panel-title   Request form.uk-form.uk-form-horizontal#query action="/restclient/query" method="POST" label.uk-form-label for="method" Method select.uk-form-large#method name="method" option GET option POST option DELETE option PUT div   label.uk-form-label for="url" Endpoint input.uk-form-width-large#url type="text" placeholder="url" name="url" dev.uk-align-right input.uk-button.uk-button-primary type="submit" value="Send" div.uk-grid div.uk-width-1-1 div.uk-panel.uk-panel-box h3.uk-panel-title   Response br div#result.uk-width-1-1 javascript: $('#query').submit(function() { console.log($(this).serialize()); $.ajax({ data: $(this).serialize(), type: $(this).attr('method'), url: $(this).attr('action'), success: function(response) { $('#result').html(response); } }); return false; });