treehouse : what would you like to learn today?
Web Design Web Development iOS Development

At_the_Gates

  • jquery show/hide and some other questions

    This always seems to happen in IE when using show/hide - you also get really nasty un-aliased type (ClearType won't apply itself for some reason). You can workaround it easily by using the sliding effects: .slideUp() .slideDown() .slideToggl…
    Comment by At_the_Gates October 2008 permalink
  • writing jquery more efficiently

    Quick edit in fact... just browsing through the jQuery docs and found an even better way to optimise it, using a 'not' traversing expression - .not("#"+target) - rather than a :not selector like in the first line. You could proba…
    Comment by At_the_Gates September 2008 permalink
  • writing jquery more efficiently

    Hi Charles, You can simplify it like this... The only changes I've made to the markup is to add rel attributes into the anchor elements which match the ids of the target divs. Basically this method passes the target div to jQuery via the rel a…
    Comment by At_the_Gates September 2008 permalink