开发者

jQuery: Is there a menu plugin that does what I'm looking for? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

I'm building an AJAX app. I've got several menus, where there is a list of possible options (provided by the server). The user can choose or unchoose any of those values. When the user makes a choice, it is saved to the server.

So if the total list is [A, B, C, D], it might look something like this:

User has chosen:
-A [Delete]
-B [Delete]

Unchosen (in a dropdown menu):
-C [Add]
-D [Add]

Then if the user chooses C, it would look like:

User has chosen:
-A [Delete]
-B [Delete]
-C [Delete]

Unchosen (in a dropdown menu):
-D [Ad开发者_开发知识库d]

C is removed from the list of choices, and added to what the user has chosen.

Is there a plugin that does this, or should I roll my own?


I have not seen a plugin to do exactly that. You could look at something like this multiselect plugin to give similar functionality.

It would not take long to roll this however.


I think it would take you longer to learn the plugin then to write your own script. Plus I think you would want to write your own for the customization factor alone.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜