html - Insert &trade or   using jquery text -


i know can solve using .html() have use text(). there way these values inserted on page shows trademark symbol or empty space ?

can add trademark symbol directly text string? this:

html:

<p></p> 

js:

$('p').text('™'); 

jsfiddle: http://jsfiddle.net/zr8geb36/


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -