title: Getting null values when using ajax serialize method
body: <pre><code>&lt;script&gt;
  $( document ).ready(function() {
  $("#inputval").ready(function(){
  var querystring = $(this).serialize();
  
  alert(querystring);
  $.ajax({
  url: "/example",
  type: "POST",
  data: querystring,
  })
  
  });
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>` this is the script am using. someone kindly help me to find out what am doing wrong.</p>