Function code update please (ajax)

Function code update please (ajax)

This works for jquery version 1.3. I need help with the latest version please.
When full shipment fields and shows a div "thanks for your comments"

Demo: http://pruebasconjquery2012.netii.net/

  1. $(document).ready(function() {
  2.     $().ajaxStart(function() {
  3.         $('#loading').show();
  4.         $('#result').hide();
  5.     }).ajaxStop(function() {
  6.         $('#loading').hide();
  7.         $('#result').fadeIn('slow');
  8.     });
  9.     $('#myform').submit(function() {
  10.         $.ajax({
  11.             type: 'POST',
  12.             url: $(this).attr('action'),
  13.             data: $(this).serialize(),
  14.             success: function(data) {
  15.                 $('#result').html(data);
  16.             }
  17.         })
  18.        
  19.         return false;
  20.     });
  21. })