Forum Moderators: open
myslider = {
init: function() {
var $ = jQuery;
$('.slide_show').mySlider(
{
mode: 'fade',
useCSS: false,
speed: 100
}
);
}
} init: function() {
var $ = jQuery;
$.ajax('.slide_show').mySlider(
{
mode: 'fade',
useCSS: false,
speed: 100
}
);
}
} [edited by: not2easy at 9:54 pm (utc) on Sep 8, 2018]
[edit reason] readability [/edit]
If the request is changed to an async request, jQuery can no longer guarantee that the loaded HTML is available.