NL2BR in JQuery

var valNew = valNew.replace(/\n/g,"<br>");
Shy Sandpiper