开发者

How to click on lines in a textarea element

I have this 开发者_如何学Gotextarea element, and i want each line in the box to be clickable and respond to javascript events, is that possible or am i looking for a different type of element?


That is not possible. In order for you do produce such behavior, you would need to design your own "textbox". Google Docs has done this for example, where the entire "textarea" is a complex and highly functional set of divs etc.


A much less intensive version of the multi-div selectable layout could be accomplished with Data Tables. See the tutorial here

They also offer tutorials on edit-in-place as well as select and delete. If you're not already using a grid to present data, it's a great tool for UI.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜