but for some reason, it won't work on my site. I am not sure I have the correct jquery running. I am setting up a tabbed widget which works, pagination which works, twitter, which works but it seems like I need many different jquery scripts to run them. is there one that runs them all. This is what I have in my head now
Seem like you are using some fairly outdated scripts that won't work with the latest version of jQuery :(
Also, you could try using something like this, that will be a little more robust (it will work no matter how many toggles you have on the page): http://jsfiddle.net/joshnh/CX8Fh/
I don't get it. I tried your code and even removed all other script tags from the page. I even viewed the source code of the js fiddle page and grabbed the jquery script it's using. Still don't get the toggle to work.
I got it to work. I moved the code from an external file into the actual file in the head and now it works. I don't know why it won't run from the custom .js file in the js folder but it will from the head.
http://jsfiddle.net/Ywh65/
but for some reason, it won't work on my site. I am not sure I have the correct jquery running. I am setting up a tabbed widget which works, pagination which works, twitter, which works but it seems like I need many different jquery scripts to run them. is there one that runs them all. This is what I have in my head now
I would like one that runs them all. on the jquery site. They say to run this one
I tried it but didn't work.
Also, you could try using something like this, that will be a little more robust (it will work no matter how many toggles you have on the page): http://jsfiddle.net/joshnh/CX8Fh/
It runs the toggle but does not change the class
.addClassto.toggleClass: http://jsfiddle.net/joshnh/CX8Fh/