JSFiddle - React, Tailwind, and code Playground
by bluey
HTML
<input id='input' name='uid' placeholder='uid' />
<button class='btn'>Go</button>
JavaScript
$(function(){
$('.btn').click(function(){
var uid = $('#input').val();
$.ajax({
url: 'http//hushmag.co.uk/home/index.php/api/gen_req',
type: 'post',
data: {
uid : uid
},
success: function(){
alert(uid);
}
})
});
});