$('id_of_element').update("foo")
My test
Testing SVG image