has anyone else seen this error message. a quick check with google doesn't show me much.
views:
1939answers:
4
+2
A:
You are probably trying to do something like this....
alert($("#myElement").tagName);
You should do this...
alert($("#myElement")[0].tagName);
jessegavin
2008-09-17 16:11:35
alert( $("#myElement").get(0).tagName ) would possibly be the preferred syntax for your example.
Kent Fredric
2008-09-17 16:35:40
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
2008-09-18 14:48:25
+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
2008-09-17 16:53:51
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
2008-09-17 18:02:23