I like add text and some images to a div using jquery.
I can do this to add text:
<script type="text/javascript">
$(document).ready(function () {
$("#help").text('This is the description').css({"border": "1px solid", "color": "Black", "font-size": "14px", "font-weight": "bold", "padding": "30px 0 30px 0", "width": "auto", "height": "auto", "text-align": "left", "background": "lightyellow"});
I tried this:
$("#help").append('<img src="description.png" alt="box_plot_description" />');
});
How would append image to this text using jquery?
I have added the append after text but, append is overwriting the div. I like have text at the beginning of the div and after that an image.