Saturday, December 26, 2009

jQuery Hide/Close Link

jQuery Hide/Close Link


jQuery Hide/Close Link

Posted: 25 Dec 2009 05:38 PM PST

It's Christmas day, and yes, I'm partaking in the usual holiday fun such as watching Basketball, hanging out with the family and eating our traditional Alaskan king crab Christmas dinner. But of course it wouldn't be a complete day without writing a tiny bit of code! Today I've been working on improving the UI here and there in Subtext. One common task I run into over and over is using an anchor tag to trigger the hiding of another element such as a DIV . It happens so often that I get pretty tired of hooking up each and very link to the element it must hide. Being the lazy *** that I am, I thought I'd try to come up with a way to do this once and for all with jQuery and a bit of convention. Here's what I came up with. The following HTML shows...(read more)

No comments:

Post a Comment