开发者

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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜