jQUery - 插入& nbsp;内部标签 [英] jQUery - insert   inside label
本文介绍了jQUery - 插入& nbsp;内部标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 fadeOut
效果隐藏标签但是当它完成后我想在其中插入一个& nbsp;
I want to hide a label using the fadeOut
effect but when it is completed I want to insert inside it a
$('label.alert').fadeOut('slow',function(){$(this).text(' ');});
但产生& nbsp;
作为原始文本。有什么想法?
but it produces a
as a raw text. Any ideas ?
推荐答案
使用 .html()
代替 .text()
。
这篇关于jQUery - 插入& nbsp;内部标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文