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>