我尝试添加一个效果,以便在更改值时闪烁一个bootstrap-multiselect下拉按钮绿色。我想用:
$optionSelect.multiselect({ nonSelectedText: 'Select option', numberDisplayed: 1});
$optionSelect.effect('highlight', {color: 'green'}, 500);
不幸的是,这导致multiselect完全中断,拆分选择和按钮。然后效果将应用于多选部分,而不会选择下拉按钮元素。如何使按钮突出显示而不会导致bootstrap-multiselect元素分成两部分?
答案 0 :(得分:0)
I offer using Animate.css to make animation in an event instead of jquery ui
https://daneden.github.io/animate.css/
you could download and customize the css file and put the flash class to your elements anytime you want.