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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -