开发者

Add image and text to element with jQuerys HTML?

开发者 https://www.devze.com 2023-03-15 06:04 出处:网络
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?

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

精彩评论

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