Home JS special effects jQuery effects jQuery beautifies Select drop-down box

jQuery beautifies Select drop-down box

jQuery beautifies Select drop-down box

jQuery beautifies Select drop-down box

jQuery beautifies the Select drop-down box This code is suitable for the background management function form drop-down box selection code.
select -- name can receive the selected value [used for form submission name customization]
option -- 1. value Parameters passed to the background
1. selected sets the default selected
2. disabled Set prohibited selection rules

<script type="text/javascript" src="js/jquery.min.js" ></script>
<script type="text/javascript" src="js/selectFilter.js"></script>
<script type="text/javascript">
//This widget supports mobile terminals

//This is initialization
$('.filter-box').selectFilter({
callBack : function (val){
//Return the selected value
console.log(val+'-is the returned value')
}
});
</script>

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

jquery deselect select drop-down box sample code_jquery jquery deselect select drop-down box sample code_jquery

16 May 2016

This article mainly introduces the jquery deselect select drop-down box sample code. Friends who need it can come and refer to it. I hope it will be helpful to everyone.

jquery simulates SELECT drop-down box value effect_jquery jquery simulates SELECT drop-down box value effect_jquery

16 May 2016

When it comes to simulating a SELECT box, the first thing that everyone thinks of is to use javascript. In fact, it can also be done with jquery. There is a good example below. Interested friends can refer to it.

Summary of JQuery select (drop-down box) operation methods_jquery Summary of JQuery select (drop-down box) operation methods_jquery

16 May 2016

This article mainly introduces a summary of JQuery select (drop-down box) operation methods. This article explains how to get the selected item, get the index value of the currently selected item, get the maximum index value of the current option, get the length of the DropdownList, etc. Friends who need it can For reference

Combobox in jQuery easyui implements drop-down box effects_jquery Combobox in jQuery easyui implements drop-down box effects_jquery

16 May 2016

This article mainly introduces several methods for implementing drop-down box effects using combobox in jQuery easyui. It is very simple and practical. Friends who need it can refer to it.

jquery dynamic loading select drop-down box sample code_jquery jquery dynamic loading select drop-down box sample code_jquery

16 May 2016

There are many ways to dynamically load the select drop-down box. In the following article, I will introduce how to implement it with jquery.

Some instructions for jquery select drop-down box operations_jquery Some instructions for jquery select drop-down box operations_jquery

16 May 2016

More than 50% of the current visitors to the company's website use IE6.0, so it must be compatible with IE6.0. There will be the following problems when using jquery to set the drop-down box in IE6.0.

jquery clear drop-down box jquery clear drop-down box

25 May 2023

With the continuous development of Web technology and the continuous advancement of the times, jQuery has become one of the most commonly used Javascript libraries in front-end development. In fact, using jQuery simplifies many operations, such as clearing drop-down boxes. What is jQuery clear dropdown box? When we create tables or forms on web pages, we often need to use drop-down boxes. Previously, we might need to manually enter the name and value of each item in the drop-down box. However, there is now a better way. You can quickly create a drop-down list by clearing the drop-down box using jQuery. also,

jquery implements select drop-down box beautification special effects code jquery implements select drop-down box beautification special effects code

16 May 2016

This article mainly introduces the implementation of jquery to beautify the select drop-down box. The effect is simple and elegant. It is recommended to everyone. Friends in need can refer to it.

jQuery custom multi-select drop-down box effect implementation method jQuery custom multi-select drop-down box effect implementation method

06 Jan 2018

In the project, you need to customize a drop-down box multi-select plug-in. For business problems, it is better to implement it yourself. This article mainly introduces the jQuery custom multi-select drop-down box effect in detail. It has certain reference value. Interested friends can refer to it. I hope it can help everyone.

See all articles See all articles

Hot Tools

jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects

jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects

A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.

layui responsive animated login interface template

layui responsive animated login interface template

layui responsive animated login interface template

520 Valentine's Day confession web animation special effects

520 Valentine's Day confession web animation special effects

jQuery Valentine's Day Confession Animation, 520 Confession Background Animation

Cool system login page

Cool system login page

Cool system login page

HTML5 tape music player-CASSETTE PLAYER

HTML5 tape music player-CASSETTE PLAYER

HTML5 tape music player-CASSETTE PLAYER