dois pontos da mesma página precisa ser simples. $('#primary-slider-container').myOwnSlider({ autoPlay : true, time : 1500 }); $('#secondary-slider-container').myOwnSlider({ autoPlay : false, widthDots : true, allowTouch : false });
uso do $(function() { var elements = $('[data-jquery-plugin]'); $.each(elements, function(__index, element) { var currentElement = $(element), options = currentElement.data(); currentElement[options.jqueryPlugin](options); }); });
uso do $(function() { var elements = $('[data-jquery-plugin]'); $.each(elements, function(__index, element) { var currentElement = $(element), options = currentElement.data(); currentElement[options.jqueryPlugin](options); }); });
uso do $(function() { var elements = $('[data-jquery-plugin]'); $.each(elements, function(__index, element) { var currentElement = $(element), options = currentElement.data(); currentElement[options.jqueryPlugin](options); }); });
uso do $(function() { var elements = $('[data-jquery-plugin]'); $.each(elements, function(__index, element) { var currentElement = $(element), options = currentElement.data(); currentElement[options.jqueryPlugin](options); }); });