admin管理员组文章数量:1425851
The following doesn't generate a 'cross' or (X) in the browser.
closeLink.text("×");
What should be set here to display the 'X' mark.
The following doesn't generate a 'cross' or (X) in the browser.
closeLink.text("×");
What should be set here to display the 'X' mark.
Share Improve this question asked Jun 29, 2015 at 18:32 user2599052user2599052 1,1463 gold badges16 silver badges34 bronze badges2 Answers
Reset to default 3×
is an HTML entity.
You can either set the element's HTML (not text) to HTML source with that entity, or set the text directly by passing ×.
For those who found this but are not using jQuery:
closeLink.innerHTML = '×'
本文标签: jqueryhow to generate cross button(amptimes) through javascriptStack Overflow
版权声明:本文标题:jquery - how to generate cross button(&times) through javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745461646a2659349.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论