Thursday, February 11, 2016

Jquery, line break in textarea.. don't get \n and get ↵


document.getElementById('textareaid').innerHTML;
textString=textString.replace(/<br>/g,"\n");

No comments:

Post a Comment