Fixed #1074 where .html() was incorrectly changing the selected value of an option.
[jquery.git] / src / ajax.js
index 09aba14..225165a 100644 (file)
@@ -174,7 +174,7 @@ jQuery.extend({
                }
 
                // Build temporary JSONP function
-               if ( s.dataType == "json" && (s.data && jsre.test( s.data ) || s.url.match(jsre)) ) {
+               if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
                        jsonp = "jsonp" + jsc++;
 
                        // Replace the =? sequence both in the query string and the data