开发者

copy paste table to chrome, textarea.value no new lines

try this in chrome (ff,ie works ok): in msword or writer make a 3 row table. In each row put something, select all rows and copy paste to chrome textarea. Each row is now in new line but when you check textarea.value t开发者_C百科here is no new lines ..strange even spliting by \n or \r not working textarea.value always return one line output

any ideas?

i'm trying to split textarea.value by new lines but not working textarea.value.split('\n');


found the problem white-space:nowrap; was causing this :P

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜