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 = '×'
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745461646a4628733.html
评论列表(0条)