The project needs to implement functions such as the Flexselect plug-in that searches the web for jquery to realize the functionality.
Plugin use: First introduce the required CSS and JS
<script src= "${ctx}/scripts/datatable/jquery-1.10.2.js" ></script><link type= "Text/css" rel= " Stylesheet "href=" ${ctx}/styles/plugins/flexselect.css "></link><script src=" ${ctx}/scripts/plugins/ Liquidmetal.js "></script><script src=" ${ctx}/scripts/plugins/jquery.flexselect.js "></script >
Join when jquery is initialized
JQuery (document). Ready (function () {$ ("Select.flexselect"). Flexselect ();});
<select name= "item_id" id= "item_id" class= "Flexselect" style= "width:300px; Text-align:left; "Onchange=" Submit_ (1) "> <option value="-1 "></option> <option value=" $ "> Linyi Pingyi Public Sivu roof waterproofing, outdoor flooring and other major overhaul 4 projects </option> <option value= "Five" > Liuqing 220kV substation 3rd main transformer extension Project </option></select>
However: When using AJAX to assign a value to select, it is not successful to add This.preloadcache () to the Filterresults method in the Jquery.flexselect.js file, such as
Above.
Select that can input text