Q:

How to change html part of a tag with jquery?

I have ,
`<span class="icon">&#9658;</span>`

in Jquery I did,
$(this).html('&#9660;');

and tried $(this).replaceWith('&#9660;'); too.
but it displays '&#9660;' instead of converting it to a html icon like ▼.
thanks

A:

This works just fine: $("span.icon").html('&#9660;');

