Tags: Color Dom layui href default event replacement each ASE options
Recently, select2 has been used in the project to beautify and enrich the drop-down box functions. This plug-in features are rich and easy to use. You can transform the generated
BootStrap Metronic development framework-based experience summary [3] use of Select2 plug-in the drop-down list, metronicselect2
In the previous article, based on the BootStrap Metronic Development Framework experience summary [2] use of list paging
Select2.js drop-down box usage summary, select2.js drop-down box
After using the Select2 plug-in for so long, you should also write an article to sum up. At the beginning, I felt that Select2 was not particularly useful, but I couldn't find a better
Sample Code (yii-select2), yii2yii-select2 with search functionality in the drop-down box of the yii2 component
Simple and small functions, but it is quite easy to use. Share it to let more people have a faster development efficiency, happy and
When doing SELECT2 plug-in encountered some pits, the final solution is as follows:Vue.directive (' Select2 ', {inserted:function(EL, binding, Vnode) {varOptions = Binding.value | | {}; varDefaultopt ={placeholder:"--Please Choose--",
Recently done a project to use Select2, want to bind JSON data into Select2, select2 the default acceptable JSON format of the data is {ID: "", Text: "} Such a key value pair to save, so new into an array to do the data processingThis is what I do
Dynamically read data to Ajax, select ({ID: "", Text: "All"}) id= ""of thevalue option, the option code is dynamically generated in the SELECT element and a call to Val is selected, the problem is that the value of the dynamically generated option
The first is the Ajax filling plug-in filloptions. This plug-in can obtain data through Ajax and add the data to the drop-down list box. The data format supports XML and JSON formats. The plug-in definition is as follows:
Filloptions (URL,
Html
>
Head
>
Title
>
Test
Title
>
Script Language
=
"
Javascript
"
>
//
VaR select1_len = Document. frm. s1.options. length;
VaR select2
=
New
Array (
4
);
For
(I
=
0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.