开发者

Click to select from a list of tags in jQuery

开发者 https://www.devze.com 2022-12-23 17:52 出处:网络
I\'m struggling to find a tag selection UI for a rails app.Ideally it would be something like the selection here on Stackov开发者_运维问答erflow, or on Delicious or Digg.

I'm struggling to find a tag selection UI for a rails app. Ideally it would be something like the selection here on Stackov开发者_运维问答erflow, or on Delicious or Digg.

I want users to be able to select multiple tags with a single click. We're already using jQuery, so it makes sense to use something that takes advantage of that. I've used the selection ui in jQuery and I'm not thrilled about having users need to hold down ctrl to select multiple tags.


I've used the jQuery tokenizing autocomplete to great effect:

http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/

It takes valid JSON from the server, which is a piece of cake in Rails!

0

精彩评论

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