I might be approaching this the wrong way, but, I'm trying to start a jquery joyride (plugin) with the click of a div. But for some reason, it takes TWO clicks to fire it. -_- I've tried to think this over logically, but I can't figure it out. Someone help me out? Explain it to me?
I do realize that joyride is a function itself and therefore might be "function-ception" with the function click handler... Still should fire it without a second click though.
Thanks.
//clickable div
<div id="takeTheTour" class="clickable">need help? click to take the on-screen tour.</div>
//JS trigger
<script>
$(document).ready(function(e) {
$("#takeTheTour").click(function(e) {
$("#TourList").joyride()
});
});
</script>