i'm using email function in pl/sql. function getting called javascript after button got clicked. working fine.
my problem generate email body in javascript using pl/sql variables. code looks like
var content = "hello " + '|| chr(13)||chr(10)||' + " " + " name: " + "'||v_name ||'" + '||chr(13)||chr(10) ||' + " "; so here problem chr(13)||chr(10) returning character 0 in string. want newline.
i tried \r\n didn't worked. html-tags don't work because email provider giving me th html-tags out.
excuse english :) hope can me.
i tried '\r\n' in javascript , worked me.
var content = "hello " + '\r\n' + " " + " name: " + "'||v_name ||'" + '\r\n' + " test"; alert(content);
below sample jsfiddle same. https://jsfiddle.net/njbjusmk/.
Comments
Post a Comment