Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
65
rated 0 times [  70] [ 5]  / answers: 1 / hits: 15296  / 11 Years ago, mon, january 6, 2014, 12:00:00

If I want to add an ascii symbol form js to a node somewhere?
Tried as a TextNode, but it didn't parse it as a code:



var dropdownTriggerText = document.createTextNode('blabla ∧');

More From » javascript

 Answers
94

You can't create nodes with HTML entities. Your alternatives would be to use unicode values



var dropdownTriggerText = document.createTextNode('blabla u0026');


or set innerHTML of the element. You can of course directly input &...


[#73356] Saturday, January 4, 2014, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adam

Total Points: 363
Total Questions: 102
Total Answers: 104

Location: Burkina Faso
Member since Thu, Dec 15, 2022
1 Year ago
;