190
rated 0 times
[
193]
[
3]
/ answers: 1 / hits: 21625
/ 13 Years ago, tue, july 19, 2011, 12:00:00
I am trying to store a DOM element into a variable by using this code:
var save_status = $(this).siblings(.save-status)[0];
save_status.append(<img src=images/loading-small.gif width=30 />);
I get the following error though:
Uncaught SyntaxError: Unexpected identifier
Any idea why I might be getting this error?
Thanks!
More From » jquery