I am, but I'm using a function containing some jQuery code in conjunction with a few existing Dreamweaver methods.
My code passes in a pure jQ object, whereas the jQuery code passes in a string. Inside the method I was going to text for which was which then take some additional action for the string. I ended up just testing for string. function expandDiv(myVar) { // if the MM_jumpMenu method is calling, it passes in a string if (typeof myVar == 'string') { // do stuff } else { var $obj = $(myVar); } $('.hidden').hide('fast'); $obj.show('fast'); } -----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of MorningZ Sent: Monday, January 05, 2009 2:57 PM To: jQuery (English) Subject: [jQuery] Re: Test if a variable is a jQuery object? I'm trying to grasp the concept of need for this check What's a situation where you would wonder what it is? Are you not in control of your own code or something? On Jan 5, 3:53 pm, "Andy Matthews" <amatth...@dealerskins.com> wrote: > How can I test to see if something is a jQuery object, or a normal > JavaScript object? > > andy