I am attempting to add an image to each save button on the page.
The jQuery I am using is this:
$("div.save-to-button").append
('<img class="saveToDropDownIcon" src="../../Content/Images/downTriangleIcon.png"
alt="V" />');
The jQuery statement above produces this html:
<div class="save-to-button"
title="Save this recipe to the shopping list or a meal plan."> Save To
<img class="saveToDropDownIcon" src="../../Content/Images/downTriangleIcon.png"
alt="V"></div>
As you can see, the html sent to the append method closes the img tag correctly, but the resulting html does not close the img tag.
I have also tried
$("div.save-to-button").append('<img class="saveToDropDownIcon"
src="../../Content/Images/downTriangleIcon.png" alt="V" ></img>');
Which produced the same result.
Could someone please point out what I am doing wrong.
Thanks, Scott