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/
- $(document).ready(function() {
- $().ajaxStart(function() {
- $('#loading').show();
- $('#result').hide();
- }).ajaxStop(function() {
- $('#loading').hide();
- $('#result').fadeIn('slow');
- });
- $('#myform').submit(function() {
- $.ajax({
- type: 'POST',
- url: $(this).attr('action'),
- data: $(this).serialize(),
- success: function(data) {
- $('#result').html(data);
- }
- })
-
- return false;
- });
- })