[jQuery] Re: help to simplify code

2009-09-21 Thread benoit v.
Just read that topic. Very nice effect, and nice && helpful code improvements! You guys are great. On Sep 21, 2:18 am, Karl Swedberg wrote: > Sure. > > // find all "a" elements within $navigation (which is a variable for $ > ('#navigation') > $navigation.find('a') > // bind two events to those l

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

2009-05-15 Thread benoit v.
what about that ? $("li a").hover(function(){ $(this).toggleClass("move"); }); On May 15, 4:42 pm, Jthomas wrote: > Hi Calvin, > I think what you're looking for is something like this, as James said. > >         $("li a").hover(function(){ >                 $(t

[jQuery] Re: Select images instead of text

2009-04-06 Thread benoit v.
If anyone is interested, I found a solution to my problem here. http://ask.metafilter.com/16153/Images-in-HTML-select-form-elements Now I'm able to visually select images inside a form, that provides my PHP script the filename of the selected element. It's actually a play around with checkbox, no