$("#foo, #bar") works in the same way you want $("#foo","#bar") to
work.
On Jul 13, 6:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> So basically, would it be practical to code the $() selector function
> in jquery to allow multiple selectors, instead of having to add them
> afterwards?
yes indeed. isn't jQuery a beautiful thing? :-)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 13, 2007, at 7:47 PM, [EMAIL PROTECTED] wrote:
Oh, awesome- didn't realize you can select multiple elements by use of
commas as you can in CSS
case cl
Oh, awesome- didn't realize you can select multiple elements by use of
commas as you can in CSS
case closed :$
On Jul 13, 7:04 pm, "Matt Stith" <[EMAIL PROTECTED]> wrote:
> .add is intended to be used in the chain, in case you need something like
> this:
>
> $("#foo").html("foobar").add("#bar").
.add is intended to be used in the chain, in case you need something like
this:
$("#foo").html("foobar").add("#bar").slideDown();
Would add "foobar" to #foo, and slide both #bar and #foo down.
Also, you can do $("#foo,#bar") to select both.
On 7/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wro
4 matches
Mail list logo