[jQuery] Re: Calling method on multiple jQuery objects

2009-02-25 Thread jQuery Lover
Oops, sorry. The snippet that I wrote selects all elements whitin your myJQObj, which is not much of any use... My bad... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 6:01 PM, jQuery Lover wrote: > You could try: > >    $('*', myJQObj).hide();

[jQuery] Re: Calling method on multiple jQuery objects

2009-02-24 Thread ricardobeat
$('#id') .add(myJQObj) .add(myotherJQObj) .hide() On Feb 24, 8:51 am, Bisbo wrote: > Hi there, > > I can't seem to find a way to perform the same jQuery method on > multiple jQuery objects. I have tried using commas and passing arrays > to the jQuery function but neither works. > > $( $('#

[jQuery] Re: Calling method on multiple jQuery objects

2009-02-24 Thread Mike Alsup
> I can't seem to find a way to perform the same jQuery method on > multiple jQuery objects. I have tried using commas and passing arrays > to the jQuery function but neither works. > > $( $('#id') , myJQObj ).hide(); > $( [ $('#id') , myJQObj ] ).hide(); > > I know you can do this within a select

[jQuery] Re: Calling method on multiple jQuery objects

2009-02-24 Thread jQuery Lover
You could try: $('*', myJQObj).hide(); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 4:51 PM, Bisbo wrote: > > Hi there, > > I can't seem to find a way to perform the same jQuery method on > multiple jQuery objects. I have tried using commas