<script>
$( document ).ready(function() {
$("#inputval").ready(function(){
var querystring = $(this).serialize();
alert(querystring);
$.ajax({
url: "/example",
type: "POST",
data: querystring,
})
});
});
</script>
` this is the script am using. someone kindly help me to find out what am doing wrong.