Fixed #2046 by forcing the dataType to 'html' in the .load() function.
[jquery.git] / src / ajax.js
index 80cabd3..a5a08ec 100644 (file)
@@ -34,6 +34,7 @@ jQuery.fn.extend({
                jQuery.ajax({
                        url: url,
                        type: type,
+                       dataType: "html",
                        data: params,
                        complete: function(res, status){
                                // If successful, inject the HTML into all the matched elements