/ Published in: Other
Expand |
Embed | Plain Text
$("textarea").change( function() { var txtVal = $(this).val(); txtVal = txtVal.replace(/rn/g, "<br /><br />"); txtVal = txtVal.replace(/(n|r)/g, "<br /><br />"); $('#testpre').html('<p>'+ txtVal +'</p>'); });
You need to login to post a comment.
