javascript - migrate jQuery old code to 1.9 version -


i have jquery code ajaxform written in old version (1.4 think) work fine want rewrite in newer version (1.9) without including jquery-migrate, shold change in code, me please

<script> // prepare form when dom ready  $(document).ready(function() {      var options = {          target:        '#targetdiv',           beforesubmit:  showrequest,          success:       showresponse       };       // bind form using 'ajaxform'      $('#countyform').ajaxform(options);  });   // pre-submit callback  function showrequest(formdata, jqform) {    var = [ { name: 'ajax', value: '1' }];  $.merge( formdata, extra)     return true;   }   // post-submit callback  function showresponse(responsetext, statustext)  {   }    $("#loading img").ajaxstart(function(){    $(this).show();  }).ajaxstop(function(){    $(this).hide();  }); </script> 


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -