$.ajax().done

$.ajax().done

Hello,

I'm working on a function I have attached to a forms onsubmit event. The problem I'm having is that my form keeps submitting. I've localized the error to my first Ajax call. I've gutted everything from the function using comments to see when it would freeze on return false. The script will send even with everything gutted out of the ajax call, so I'm wondering if there's a problem with my structure here..

  1.    $.ajax({
                    method: "POST",
                    url: "../../php/scripts/post_product.php",
                    dataType:"html",
                    data:productData
                                       
                }).done(function(html){
                      alert(html);
                      return false;

                });


Thank for any help,
Jeremy.