I am a beginner in using JQuery within Visual Studio 2013.
My question is how to insert an img tag into a table or div using JQuery?
For example, I have a div and I would like to generate an image dynamically using JQuery. Or, I have a dynamically created table within a dynamically created div, and I need to add an image to one of its rows.
I attempted this on jsfiddle (http://jsfiddle.net/3C7UD/1/)
$("#divid").append('<table>
<tr>
<td>asdasdasd</td>
<td><img src:"https://www.google.com/images/srpr/logo11w.png" width:"225px" height:"225px" /></td>
</tr>
</table>');
$('#divid').append('<img src:"' + imgLink + '" width:"225px" height:"225px" />');
Unfortunately, the image is not displaying. I also tried this in my Visual Studio project with no success.
I haven't been able to find any tutorials on adding images, and the solutions provided by others in this forum have not resolved my issue thus far...