FancySelect is a small and practical jQuery drop-down box beautification plug-in. This drop-down box beautification plug-in adopts a flat design style and is one of the first choice drop-down box beautification plug-ins for developers who pursue fashion.
How to use
HTML structure
FancySelect is very simple to use and can be used in conjunction with jQuery or Zepto. Place some
By default, FancySelect only uses native drop-down boxes and styles on iOS devices. If you want to override it, set forceiOS to true when the drop-down box plugin is initialized.
FancySelect can also specify the style through the data-class attribute of the
JAVASCRIPT
Update options
If the options of your drop-down box are modified after the plugin is initialized, you can tell the plugin to update the options list by triggering the update.fs method on the drop-down box.
Enable/disable drop-down box
The FancySelect drop-down box plug-in will automatically set the drop-down box to the disabled state after initialization. If you need to reset the state of the drop-down boxes, you can use the enable.fs or disable.fs methods on the select element to modify them.
If you need to create some personalized effects, you can use the triggerTemplate and triggerTemplate methods, which both return an HTML string through the option option:
You can listen to the change.fs event when the