I’ve learned so much about jQuery while working at Viget. I wrote a blog post about how you can improve your jQuery through some simple refactoring.
Visit Site →Categories
Recent Articles
May 2012
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 |
1 Comment
Emil
01.16.2011Here is my 2 cents
$(’#nav>li>a’).click(function(e){
e.preventDefault();
$(’#nav>.current>a’).add(this).parent().toggleClass(‘current’).children(‘ul’).slideToggle(250);
});
Too late, comments are closed!
Don’t worry, you can email me or contact me on Twitter.