Relatively new to jquery. I’m trying to make a button like the accordion button…something that will take the button and slide out a div beneath it like the theme selector on this page: http://craigsworks.com/projects/qtip2/demos/#themeroller (not even sure what to call it).
The big parts are that it slides out and that it sits above the content on the page and doesn’t change the div’s height when it slides out.
Does anyone know of a widget or a way to work an accordion button (or other button) to do this?
Thanks!
This fiddle should get you started. Be aware there are some issues with ie 7, if you are worried about IE7. You can fix the issues with a bit of conditional styling.
To Break it down
HTML
CSS
Javascript
NOTE: this is just meant to get you started. You may need to wire up further event handlers for clicking the button on links depending on your needs.