Hi All,
I am working with jquery for the first time to set some fun into my site manager. I have used fancybox to create these nice closable setions on my page. But now I want to try and send an ajax call when a section is opened. So I can remember if it was open before I submit the page with changes.
Currently the code to read a click to open or close a section is:
$("h2.trigger").click(function(){
$(this).toggleClass("active").next().slideToggle("slow");
}
I am asumming that "this" is the name of the h2 trigger name. But I can't read it. I want to find out which H2 was clicked on, so I can send that to my server to store in my database.
Thanks for any help,
Scotty.