I have a JSON element that contains a URL:
"http://media.xyz.com/Data/stockPhotos/17962.jpg"
But when I try to use it in my javascript:
imgRow += "<td><img src=" + item.style.stockPhotoUrl + "/></td>";
The result is:
<td>
<img src="http://media.xyz.com/Data/stockPhotos/17962.jpg/"/>
</td>
I'm not sure why this is adding a trailing slash.
How can I get rid or this slash?
"/></td>"I think you might need a space here" /></td>"?