Welcome To Snipplr


Everyone's Recent Snippets Tagged dropdown



« Prev 1 2
This snippet adds credit card select box dropdown values 10 years in future from current year.
0 1033 posted 7 years ago by acosonic
To select a US State from a form.
1 847 posted 9 years ago by windmarble
Language dropdown list Dil seçim listesi
0 719 posted 10 years ago by Balamir
Use Z-Index to make navigation layer ABOVE other elements.
1 695 posted 11 years ago by xcsteve99
For some reason setting a default value for select elements does not work. This one line of jquery solves that problem. Assign a value (value="something") to the select tag that is to be the default value. With jquery get all select elements with a...
0 1152 posted 11 years ago by halk
Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/
0 754 posted 11 years ago by rumremix
This will take the screen width into account and display either a horizontal menu or a dropdown menu with a hover style. Resize your window to see the effect.
1 794 posted 11 years ago by ryanfiorini
I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
0 678 posted 12 years ago by JonnyCraze
Set a variable by getting the URLs id with PHP. Find the the option with the name value that is equal with the variable and add "selected" to it.
0 739 posted 12 years ago by LadyLoomis
This snippet gets the value of the selected dropdown
0 733 posted 12 years ago by jjmu15
A working HTML/CSS dropdown (flyout) menu.
0 770 posted 12 years ago by zvineyard
0 4282 posted 12 years ago by mecha
The option elements in the original select may provide an image and a second line of text by using a data-img and a data-info attribute.
7 1132 posted 13 years ago by peckham
Basic style to set up Joomla-format menu as horizontal menu with dropdowns.
0 648 posted 13 years ago by cviolette
jQuery to make Joomla-format menu dropdowns appear on hover. Change "#mainnav" to menu container selector.
1 648 posted 13 years ago by cviolette
Custom dropdown field, replace defaut dropdown style with custom design. This function does not replace the select field.
1 655 posted 13 years ago by touffies
container id: nav list class: dropdown-menu
2 710 posted 13 years ago by czterystaczwarty
example I used to create a auto suggest search from that pulls from a database. The example pulls from a single db table containing categories. Using jQueryUI made this pretty painless but by default the autocomplete feature uses GET variables and...
4 792 posted 13 years ago by myke
So recently I was asked to change a navigation style of an existing site to drop-down menus. Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (so...
0 698 posted 13 years ago by dom111
So recently I was asked to change a navigation style of an existing site to drop-down menus. Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (so...
0 655 posted 13 years ago by dom111
1 829 posted 13 years ago by jermeyz
requires that a pulldown \\\"program1\\\" in form \\\"freshmen\\\" be set to anything but the first value in the option list. \\r\\n\\r\\nrequires jquery validate: http://docs.jquery.com/Plugins/Validation
1 641 posted 13 years ago by dan_hoerr
Incredibly useful. Great when you need to remove and add options to selectboxes.
0 750 posted 13 years ago by Meander365
0 630 posted 13 years ago by artaries
Dropdown navigation is fairly inaccessible as it depends on hover events in 99.9% of cases. Tabbing through the navigation with the keyboard fails to reveal the dropdowns leaving those navigation items virtually inaccessible. Worse, each of the hidde...
0 1561 posted 14 years ago by chrisdpratt
« Prev 1 2