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>
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
23 Dec 2024
Dynamically Populating Drop-Down BoxesA popular technique used in web development is to create interactive web forms where drop-down boxes can...
21 Oct 2024
This article provides a solution for pre-selecting an item in a drop-down box based on a database value using HTML and PHP. The main issue addressed is the incorrect setting of the selected attribute on the select element. The article offers correcte
24 Jun 2016
Solution to the problem that div cannot cover the select drop-down box in IE6 browser
03 Nov 2024
Setting Selected Drop-Down Option by Text Description with jQueryIn the realm of web development, selecting an element within...
24 Jun 2016
The value of name in the select drop-down box cannot be obtained in php100
24 Jun 2016
The CSS of the select drop-down box under IE6 and IE7 is not displayed properly.
24 Jun 2016
How can the select drop-down box select the value in the option, or can the user input it himself?
24 Jun 2016
CSS3 JQUERY page scrolling effects code
24 Jun 2016
58 jQuery simulated CSS3 transition page switching effects
Hot Tools
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
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
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER