jquery click event using tabby id not working
-
Hi best people of Tabby,
Great plugin love it, looks good and everything. However I have a question.
I want to add a click event to the tabs,
this is the code I’m using
<script>
$(document).ready(function(){
$(‘#tablist1-tab1’).click(function(){
alert(“Click one”);
console.log(“send to console”);
});
$(‘#tablist1-tab2’).click(function(){
alert(“Click two”);
console.log(“send to console”);
});
$(‘#tablist1-tab3’).click(function(){
alert(“Click three”);
console.log(“send to console”);});
});
</script>I see no errors in the code/console. But when I click the tabs, it doesn’t alert the text, nor does it log to the console. I’m pretty sure this should be possible am I missing something?
- The topic ‘jquery click event using tabby id not working’ is closed to new replies.