On 11/11/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> > This line was also new for me:
> >
> > $('textarea, [EMAIL PROTECTED]', form).val('');
> >
> > So i can use the "," inside a selection to add another selection ?
>
> jQuery supports CSS selectors. You can group selectors together like:
>
> h1, h2, h3 {
> color: red;
> }
>
> Thus jQuery supports that too.
The extra param passed to the $() method is the context the query
should be run in. The 'form' variable would be the form DOM element.
The description Klaus gave about using a comma only applies to the
selector string (the first param passed to the $()).
--
Brandon Aaron
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/