[jQuery] appendTo does not return an object
Hello,
I want to use the JavaScript chart component "flot" which uses jQuery. There is a line where Firefox (2.0.0.14) gets an error (IE 6 works fine). I tried to step through the jQuery source but I can not find the problem:
canvas = $('<canvas width="200" height="100"></canvas>').appendTo(target).get(0);
target is a jQuery object which stores a div-node. I debugged the script and target is correctly filled. But target is undefined after this call.
Maybe somebody can help me.
TIA
Susanne