开发者

search with dropdown filter?

does anyone have an example of a javascript searchbox with a dropdown filter? so for example i'm looking to create a searchbox for my site and allow users to either search: "Current Category" or "Whole Site". I could create a combobox and place it next to the input box but i'm trying to see if there is a fancier js way of doing this.

EDIT: i don't think i explained very well what i'm looking for. So, I have an input box to perform searches on my site. What i'd like is to be able to narrow down this searches and make them more specific by providing a filter. So for example, i want the us开发者_如何学JAVAer to search for "John Doe", but before he must select whether he is going to search in the current category "blog posts" or "whole site".

search with dropdown filter?


Maybe the chosen plugin might help you: http://harvesthq.github.com/chosen/

It's a select-box replacement with a search feature:

search with dropdown filter?

If you just need an improved button you might start with the jQueryUi Button:

http://jqueryui.com/demos/button/#splitbutton

search with dropdown filter?


There is so many solutions: selectbox | jQuery Plugins. Or just Google "jquery custom select"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜