Reputation: 1068
Hi I am calling slide show multiple time like this
$('.content-slide').myelinSlider({
auto : false,
type : 'content',
speed : 1500
});
$('.content-slide-temperature').myelinSlider({
auto : false,
type : 'content',
speed : 1500
});
My problem is how do I set parameter of 'content-slide auto' to true by clicking play/stop button. I tried like this but confuse
<span id="content-slide_play>Play</span>
<span id="content-slide-temperature_play>Play</span>
$('#content-slide_play').click(function(){
$(this).toggleClass('#content-slide_stop');
});
thank you for your any suggestons
Upvotes: 0
Views: 66
Reputation: 12400
You could just update the plugin options on click:
$('#content-slide_play').click(function(){
$('.content-slide').myelinSlider({
auto : true,
});
});
Upvotes: 1