select2-bootstrap美化下拉框

This commit is contained in:
RuoYi
2019-05-05 17:52:02 +08:00
parent 27c0a440d7
commit 07dc3ee287
5 changed files with 13 additions and 4 deletions

View File

@ -5,6 +5,7 @@
$(function() {
// select2复选框事件绑定
if ($.fn.select2 !== undefined) {
$.fn.select2.defaults.set( "theme", "bootstrap" );
$("select.form-control:not(.noselect2)").each(function () {
$(this).select2().on("change", function () {
$(this).valid();