Call fires when clicking on inline elements. Please help
hey guys..
got a bit of an issue, gonna try explain best i can.. here goes.
i have a FAQ Question h2 acting as a trigger to slide out a hidden div below it, the FAQ answer, and clicking it toggles the h2 class so the bg img changes.
toggle_container is the hidden div, h2 is the trigger..
code below:
- $(document).ready(function(){
- $(".toggle_container").hide(); // Hides the container onLoad
- $("h2.trigger").click(function(){
- $(this).toggleClass("active").next().slideToggle("fast");
- });
- });
now i have a rating plugin that sits in the h2 tag (puttin it anywhere else in the DOM causes it to go crazy).. when i click the rating star, it behaves as intended, but also then somehow calls the above code and expands the FAQ answer.
any ideas?
Dan