开发者

textarea as list

开发者 https://www.devze.com 2023-04-08 17:08 出处:网络
Im trying to make 2 side by side text areas, with 2 buttons between them, one that adds an item from a selected line in the left textarea to the textarea on the right, the other to remove a selected i

Im trying to make 2 side by side text areas, with 2 buttons between them, one that adds an item from a selected line in the left textarea to the textarea on the right, the other to remove a selected item from the list on the right. Basically, a开发者_如何学编程 'line selected' function is where Im failing. Any ideas?


You can put each item in span/paragraph tag and use break line if necessary to keep each item on a separate line, then you can put a onclick event on the individual span tags. Would this help?

0

精彩评论

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