Add image and text to element with jQuerys HTML?
I would like to add both an image and some text to an element with jQu开发者_如何学Goerys HTML, but it's not working!? Can I do it in some other way?
var saveTime = "Text sparad: " + h + ":" + m + ":" + s;
$("#status").html("<img src='grafik/bullet_disk.png' />" + saveTime);
Check
/bullet_disk.pnp
must be
/bullet_disk.png
And always add alt=""
(even empty) to an img element in order to pass validation :)
精彩评论