
Today we will show you some more UI elements: a search box with a filter and a large drop down menu. We will use jQuery in both elements for the effect. We will also use plenty of CSS3 properties to create some slick looking details.
Search Box with Filter

This search box reveals a drop down menu after the user clicks into the input field. The menu is meant to act as a filter with several checkbox options that allow the user to select specific categories for his search. When the user hovers out of the input or the filter box, the drop down will disappear.
Large Drop Down Menu

The large drop down menu is a good option for sites with a lot of navigation items. When the user hovers over one of the list items, the item enlarges to the width of the submenu and the submenu appears.
try to reduce window size and see what would happen to the menu….
if you put a select element in the menu it will close the menu when you try and select an option.
Great job with this search widget – will definitely make use in future projects.
Great Job, i will use this in my next project!
cheers!
Hi,
The drop down menu is excelent! like the search box too! good job!
NOTE: for the search box, you forgot the ids on options of the select and the label click dont work :)
Thx to share your creations
Best regards
@alex.obukhov
To bring focus back to the input field after “mouseleave” insert the following just below the bind mouseleave function:
$(“input:visible:enabled:first”).focus();
Like this:
$ui.bind(‘mouseleave’,function(){
$(“input:visible:enabled:first”).focus();
$ui.find(‘.sb_up’)
.addClass(‘sb_down’)
.removeClass(‘sb_up’)
.andSelf()
.find(‘.sb_dropdown’)
.hide();
});
Where can we adjust the width of the drop down box?
Opps Found it in style.css.
thanks for this tutorial
Hi, great search box. How can I change the code to use radio buttons instead of checkboxes?
I changed the code to Automotive
Now it shows the radio button but you can select more than one radio button at a time which is not what I need.
I want to allow users to select one One category to filter the search by.
Any ideas?
Thanks
Hy, what is the license of your plugin? Can I use in my work, comercially??
Awesome
Superb Menu / Search panel !
Thanks keep it up !
How can I add a menu option that doesn’t expand? For example a home or link to one page that doesn’t have any menu options.
Thank you
How do I set the menu’s position to prevent menu overlapping when the browser window is sized small? Currently when you minimize the size of the browser window, the menu items get shifted around underneath each other. I know it has to do with the .css and position:absolute or position: relative, just can’t get the right code to work. Help! Please :)
hello … i added more categories … and when dropdown appears last item get on the left side above menu … i tried with overflow:hidde; but this will hide the dropdown … any ideas?
Hi, I found a little bug I think in IE 8: After i click inside the text field the dropdown appears then i take the mouse out and the dropdown dissapears. Now if i click on a different tab in IE 8 then click back on the tab with the search bar, the dropdown is shown and not hidden. It should be hidden until I click again in the text field.
solved it.
thanks very much.
I have everything installed nicely but I have a problem when I go to any of the menu and dropdown, the dropdown goes behind the posts, chat and everything near (below it) as the drop down hide behind any content I have below it
can you guys help me out on this to make the drop down on that menu to stay on top of everything?
When I changed the background colour of the dropdown menu from orange to light grey, there’s a light orange shadow on top on the menu. Is there anyway to get ride of that?