I'm trying to figure out something without results. I have a Simple <img>
used as button, and if I click on it, the text from other <h3>
elements should change. That part is working, but I'm also trying to include on the new text an image as a Bullet element, but it's not working, it's rendering as text too. Here's my actual code:
HTML:
<img id="button1" src="images/info.png"/>
<h3 class="text1"> Here's some temporal text </h3>
JAVASCRIPT:
$( "#button1").click(function() {
$(".text1").text('This will be the new text also including a bullet <img src="images/bullet.png" style="margin-right:10px;"/> And here continues the text, but seems to be that the bullet is not being rendered:( only as text');
});
Could you help me to find a solution?