Let's say you have a link to show more options which expands a list of options. It's says "more options". It's easy to toggle those options with
.slideToggle(), but the text remains the same. To toggle the text too...
var txt = $("#extra-options").is(':visible') ? 'more options' : 'less options';
a bunch of other ways, as well.
Treehouse is where you go to learn HTML, CSS, and how to build iOS apps. It's a complete education in modern web and app technology, designed to get you ready for a hot new job or to kickstart your own business.
The Lodge is a member login only area with access to video training on how to build websites from scratch using the best modern tools.
Wufoo is the most powerful online form builder out there. Easily build multi-page forms, add logic and branching, customize the design, take payments, and much more.
Try it free!
*May or may not contain any actual "CSS" or "Tricks".