The following code apparently escapes the HTML tags and prints
Full Membership - 1 Year:$25
on the Bro
try .html :-
$(".ms_total").html("<p>Full Membership - 1 Year:<span>$25</span></p>");
As documented in official site :-
Get the HTML contents of the first element in the set of matched elements or set the HTML contents of every matched element.
Use .html
insted of .text
. Because .text displays the contents which is in quotes