I am trying to insert an image into a td row with html() JQuery function (see http://jsfiddle.net/R5q68/).
The problem is that the image is not displayed. When I analyse my td, it seems that there is no slash to close the img tag.
I am using symfony2 and assets, that’s why my image link is like that.
<img src="{{ asset('bundles/sciforumversion2/images/design/new/submission/element_up.png') }}"/>
I have found a solution: I had to create a global JavaScript varialble with the image path:
And with this path, I was able to set the image asset:
And it is done. Enjoy.