title: jQuery on("paste") for the first time doesn't grab or pass the value
body: <p>Real deal problem for me, because I have no clue to resolve it.</p>
  
  <p>jQuery script I wrote should grab the input value on "paste" action and pass it by ajax to codeigniter controller. </p>
  
  <p>It actually works fine, but only if I paste the value for the second (and further) time. It works fine too when I change on("paste") to on("click") for some div or other DOM element.</p>
  
  <p>Script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $("#link").on("paste", function(){
  $("#thumbs").empty().html("&lt;p&gt;loading&lt;/p&gt;");
  var postData = {
    'url' : $("#link").val()
   }; 
  
   $.ajax({
       type: "POST",
       url: "/thumb/ajax/",
       data: postData , //assign the var here 
       success: function(msg){
      $("#thumbs").html( "Data Saved: " + msg );
       }
  
  });
  </code></pre>
  
  <p>});
  </p>
  
  <p>Any help would be appreciated</p>
  
  <p>EDIT: one more hint. </p>
  
  <p>val() in this particular script actually takes value <strong>before</strong> the paste action.
  If i write something to this input, then remove it and paste something else it would actually pass to the controller the value i wrote, not the one I pasted.</p>
  
  <p>EDIT2: 
  OK, I'm pretty sure that's jQuery problem with paste. </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      $("#link").on("paste", function(){
          $("#thumbs").empty().html("&lt;p&gt;loading&lt;/p&gt;");
          var postData = {'url' : $("#link").val() }; 
          $("#thumbs").html($("#link").val());
      });
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>This script should add value from input to div#thumbs. It doesn't for the first paste action. On second it's actually works. </p>
  
  <p>EDIT3: My friend gave me a hint. on("paste") works right on "paste" action and before the paste is actually done. If anyone give me a hint how to make a timeout to grab the value after the paste I can move on.</p>