platypusman's public fiddles
-
-
-
-
-
-
Copy options from select dropdown
Get the list of option values and option text labels from a dropdown (select) element.
-
1Lsc5yx7
jQuery (edge), HTML, CSS, JavaScript
-
r4xhv7fv
No-Library (pure JS), HTML, CSS, JavaScript
-
pEuQz
Mootools 1.3.2, HTML, CSS, JavaScript
-
TSwGn
jQuery 1.9.1, HTML, CSS, JavaScript
-
Select2 : multi-select : get selected values/text : data array
Retrieve the selected options in an object array. **Need to figure out how to split/format this to get just the text...
-
Select2 : get selected value/text
Use data to retrieve the ID and Text of the selected option.
-
Select2 : multi-select : get selected values/text
*NOT WORKING. Using data to retrieve the selected IDs and options (text) does not work. Simply getting the value directly works (for the ID). But no way to get the text...
-
nqWNJ
jQuery 1.8.3, HTML, CSS, JavaScript
-
gWCav
jQuery 1.8.3, HTML, CSS, JavaScript
-
rKT84
jQuery 1.8.3, HTML, CSS, JavaScript
-
53w3v
jQuery 1.8.3, HTML, CSS, JavaScript
-
Select : highlight group if any selection is made
For groups of form elements (fieldset, etc). If any one of the selects has a selected value (other than zero or the default), highlight the row to indicate the item is selected.
-
Filter items
Simple way to filter (hide/show) items. Uses the ID of a button (or link or whatever) to find any elements with a matching class name.
-
NKccZ
jQuery 1.8.3, HTML, CSS, JavaScript