Sorry, my mistake. At your fiddle page (https://jsfiddle.net/kbq7ymbk/64/) it works fine at default JSFiddle settings and also, if I change âJavaScript (No-Library (pure JS))â to any of the following:
jQuery 3.2.1 (jQuery 3.2.1)
jQuery 3.1.1 (jQuery 3.1.1)
jQuery 2.2.4 (jQuery 2.2.4)
but stops working if I change it to the following:
jQuery 2.1.3 (jQuery 2.1.3)
jQuery 1.9.1 (jQuery 1.9.1)
With 1.9.1 selected, I get the following error under the JS tab in the web console:
TypeError: url.indexOf is not a function jquery-3.1.1.js:9793:9
jQuery.fn.load() jquery-3.1.1.js:9793
_display:133
I have looked at the two versions of JQuery (3.2.1 and 1.9.1) and compared both, however, I donât know what to make of the differences in code:
3.2.1:
jQuery.fn.load = function( url, params, callback ) {
var selector, type, response,
self = this,
off = url.indexOf( " " );
if ( off > -1 ) {
selector = stripAndCollapse( url.slice( off ) );
url = url.slice( 0, off );
}
1.9.1:
jQuery.fn.load = function( url, params, callback ) {
if ( typeof url !== âstringâ && _load ) {
return _load.apply( this, arguments );
}
var selector, response, type,
self = this,
off = url.indexOf(" ");
if ( off >= 0 ) {
selector = url.slice( off, url.length );
url = url.slice( 0, off );
}