It also looks like you are using appendTo() incorrectly. If you are trying to append something to the element in the matched set,
you should be using append().
appendTo() is intended to take (usually new) markup and append it
to the elements defined by the passed selector. For example:
This creates new span and appends it to the body.
As opposed to
which appends the text "whatever" to the body.
See the difference?
[ January 17, 2008: Message edited by: Bear Bibeault ]