Tabs... they're everywhere now. People know and love them, but creating them yourself can be a pain. Thankfully, jQuery UI has a simple and easy to use function to create them from an unordered list and a set of DIV's. The implementation is very quick and provides a sleek-looking interface by default, which can be styled by CSS to pretty much any look you want.
"Oh, what a tangled web we weave, when first we practice to deceive". [Sir Walter Scott]
jUntangled is a blog about jQuery, HTML and CSS for beginner and intermediate web developers. The aim is to help untangle the web by clearly explaining how to use jQuery as well as some interesting aspects of HTML and CSS, so we can all write clean, untangled code for easy maintenance and a superior user experience.
Friday, August 10, 2012
Thursday, August 9, 2012
Cycling through multiple functions
Sometimes you may want to click an item and cycle between 2 (or more) different functions - for instance first show, then hide another item. This may be for building a custom navigation, displaying additional options, or any other scenario where you want to have an on/off type of functionality.
Subscribe to:
Posts (Atom)