views:

1939

answers:

4

has anyone else seen this error message. a quick check with google doesn't show me much.

A: 

Could you give us an example code snippet that produces this error?

EvdB
+2  A: 

You are probably trying to do something like this....

alert($("#myElement").tagName);

You should do this...

alert($("#myElement")[0].tagName);
jessegavin
alert( $("#myElement").get(0).tagName ) would possibly be the preferred syntax for your example.
Kent Fredric
The [jQuery docs](http://docs.jquery.com/Core/get#index) say:"This function called as $(this).get(0) is the equivalent of using square bracket notation on the jQuery object itself like $(this)[0]."
jessegavin
+1  A: 

Ensure that you're running your script AFTER the page has rendered. If your script is at the top of the page and runs right away, and your DIV is below that script the DIV doesn't exist yet.

Diodeus
A: 

sorry this was a sort of half-assed question, on my part. i'm going through my .js files and eliminating entire blocks of code now. i've isolated it to one particular .js file.

thanks all the same for reading through this question and replying.

the0ther