如何更改多个html属性的值? [英] How to change the value of multiple html attribute?
本文介绍了如何更改多个html属性的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< a class =btn small fileupload_canceltitle =取消上传>取消上传< / a>
到
< a class =btn small fileupload_canceltitle =全部删除>全部删除< / a>
可行的解决方案吗?
谢谢
解决方案
您:
$(a.btn.small.fileupload_cancel)。attr(title,remove all) .html(全部删除);
让我知道您是否需要别的东西..
i want to change this html element.
<a class="btn small fileupload_cancel" title="cancel upload">cancel upload</a>
to
<a class="btn small fileupload_cancel" title="remove all">remove all</a>
what is the most feasible solution for this ?
thank you
解决方案
This should help you:
$("a.btn.small.fileupload_cancel").attr("title", "remove all").html("remove all");
Let me know if you need anything else..
这篇关于如何更改多个html属性的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文