I\'m trying to set some text to a label dynamically using jQuery. But i can\'t get the or \\n to render and give me new lines. It all shows
\\n
text() will escape any html code, so instead use html()
text()
html()
$("#myLabel").html("This is my first line This should be my second line.");