开发者

jQuery/javascript text selector similar to iphone

开发者 https://www.devze.com 2023-02-24 08:30 出处:网络
im looking for a javascript/jquery plugin that will allow a user to select a word on a web page which once selected allows the user to drag a handle left/right if they want to expand the number of wor

im looking for a javascript/jquery plugin that will allow a user to select a word on a web page which once selected allows the user to drag a handle left/right if they want to expand the number of words they have selec开发者_StackOverflow中文版ted. The iphone has exactly this when you double click on a word - does anyone know of such a tool?

Thanks in advance

Al


This is not possible because you need HTML rendering engine to handle text/element flow. That's why there is (miserable) selection API in HTML specs. I suggest rethinking your problem in a way that doesn't need such UI component.

0

精彩评论

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