suchit pandya wrote:Thanks for posting i solved it.
by replacing \r\n of the string by /r and then re replace /r by \r\n in called function.
I suggest a different way would be to convert:
\r\n to \\r\\n
which will make the output:
<td width="5%" align="center" class='label3'>
<img src="/IWAS/FMS/images/vwicn116.gif" onclick="showComments('no comments\r\nff');">
I wonder if \r makes sense in js though...