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!
Replace
with
The problem is in your quotations.