I have a JQuery slideshow on my home page that displays a tooltip (using the plugin Tooltipster http://calebjacob.com/tooltipster/), each time you hover over one of the slideshow images. What I want to do is delay the loading of Tooltipster every time the next button on the slideshow is clicked using JQuery. This is my syntax so far:
<!--- Load Tooltipster plugin -->
<script>
$(document).ready(function() {
$('.tooltip').tooltipster();
});
</script>
<!--- Delay the plugin load every time next_button is clicked -->
<script>
$(document).ready(function() {
$(".next_button").bind("click",function() {
setTimeout(function() {
$('.tooltip').tooltipster();}, 200);
});
});
</script>
However this is not working. Where am I going wrong?