[jQuery] Re: A better way of writing this code?

2009-05-14 Thread Calvin Stephens
e script: >> >> >   $(document).ready(function() { >> >       $('li.a').hover(function() { >> >          $(this).addClass('move'); >> >   }); >> >     $('li.a').mouseLeave(function() { >> >        $(this).removeClass('move'); >> >> >   )}; >> > )}; >> >> >   Thanks for your time, >> >> >   Calvin Stephens

[jQuery] Re: jQuery script simplification question

2009-04-17 Thread Calvin Stephens
Hi Richard, Thanks for taking time out of your schedule to help me learn how to write simplified code! Cheers, Calvin On Thu, Apr 16, 2009 at 9:47 PM, Richard D. Worth wrote: > You only need one document.ready, and there's a shorthand: > > $(function() { > >   $("li.one").click(function() {

[jQuery] Re: Has anyone used these jQuery books?

2009-04-15 Thread Calvin Stephens
I think compatability is important Karl. Also, thanks for the heads up on the reference guide. Cheers, Calvin On Wed, Apr 15, 2009 at 2:32 PM, Karl Swedberg wrote: > As one of the authors of jQuery Reference Guide, I'd have to recommend that > you not buy it, especially if you already have L

[jQuery] Re: Simple HTML swap question

2009-04-11 Thread Calvin Stephens
_ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > On Apr 11, 2009, at 7:49 PM, Calvin Stephens wrote: > > Hi Karl, > > I was actually trying to build on a tutorial from your book- "Learning > jQuery 1.3". The example was f

[jQuery] Re: Simple HTML swap question

2009-04-11 Thread Calvin Stephens
Hi Karl, I was actually trying to build on a tutorial from your book- "Learning jQuery 1.3". The example was from Chapter 6 (the appending HTML/ AHAH technique). Your solution will more than likeley work... I was just trying to figure out how to make some reuseable code for all of the links. You