Welcome To Snipplr
Everyone's Recent Snippets Tagged dropdown
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet adds credit card select box dropdown values 10 years in future from current year.
0
1246
posted 8 years ago by acosonic
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
1452
posted 12 years ago by halk
Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/
0
963
posted 12 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
1028
posted 12 years ago by ryanfiorini
I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
0
905
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
959
posted 12 years ago by LadyLoomis
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
1361
posted 13 years ago by peckham
Basic style to set up Joomla-format menu as horizontal menu with dropdowns.
0
840
posted 14 years ago by cviolette
jQuery to make Joomla-format menu dropdowns appear on hover. Change "#mainnav" to menu container selector.
1
831
posted 14 years ago by cviolette
Custom dropdown field, replace defaut dropdown style with custom design.
This function does not replace the select field.
1
868
posted 14 years ago by touffies
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
999
posted 14 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
901
posted 14 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
858
posted 14 years ago by dom111
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
842
posted 14 years ago by dan_hoerr
Incredibly useful. Great when you need to remove and add options to selectboxes.
0
970
posted 14 years ago by Meander365
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
1861
posted 14 years ago by chrisdpratt