开发者

How insert a list of optional texts at the position of cursor using jquery?

开发者 https://www.devze.com 2023-03-15 23:52 出处:网络
How insert a list of optional texts at the position of cursor using jquery? For example, I have this ul li list

How insert a list of optional texts at the position of cursor using jquery?

For example, I have this ul li list

aaa bbb ccc ddd eee fff ggg hhh iii jjj

Now i need to insert each highlighted list item at the position of cursor..

An example of the following text in a textarea shows only list items change when selecting them from the ul li list at the position of the cursor.

This is an insertion test of aaa bbb ccc dd开发者_StackOverflow中文版d eee


Question is not entirely clear but I assume you are talking about an AutoComplete plugin. You can use the one that is part of jQuery UI:
http://jqueryui.com/demos/autocomplete/

0

精彩评论

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