多选双面jquery不起作用 [英] Multiselect 2 sided jquery is not working

查看:71
本文介绍了多选双面jquery不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<pre lang="Javascript">


















< select name =from []id =multiselectclass =form-controlsize =8multiple =multiple>

< option value =1> Item 1< / option>

< option value =2> Item 5< ; / option>

< option value =2> Item 2< / option>

< option value =2> Item 4< /选项>

< option value =3>第3项< / option >

< / select>


<select name="from[]" id="multiselect" class="form-control" size="8" multiple="multiple">
<option value="1">Item 1</option>
<option value="2">Item 5</option>
<option value="2">Item 2</option>
<option value="2">Item 4</option>
<option value="3">Item 3</option>
</select>









< button type = buttonid =multiselect_rightAllclass =btn btn-block> < / button>

< button type =buttonid =multiselect_rightSelectedclass =btn btn-block> < / button>

< button type =buttonid =multiselect_leftSelectedclass =btn btn-block> < i class =glyphicon glyphicon-chevron-left> < / button>

< button type =buttonid =multiselect_leftAllclass =btn btn-block > < / button>


<button type="button" id="multiselect_rightAll" class="btn btn-block"></button>
<button type="button" id="multiselect_rightSelected" class="btn btn-block"></button>
<button type="button" id="multiselect_leftSelected" class="btn btn-block"></button>
<button type="button" id="multiselect_leftAll" class="btn btn-block"></button>









< select name =to []id =multiselect_toclass =form-controlsize =8multiple =多个>< / select>


<select name="to[]" id="multiselect_to" class="form-control" size="8" multiple="multiple"></select>











我尝试了什么:



这是我的HTML代码,双面多选是在bootstrap模态中,我的js是这样的:



$('#sultiiselect')。multiselect(); {(

});

结果还可以,但点击按钮时没有任何反应请帮助。



What I have tried:

This is my HTML code and the 2 sided multiselect is inside the bootstrap modal, my js is like this:

$('#multiselect').multiselect(); {(
});
The result is ok but when the button is clicked nothing happened please help.

推荐答案

('#multiselect')。multiselect(); {(

});

结果还可以,但点击按钮时没有任何反应请帮助。
('#multiselect').multiselect(); {(
});
The result is ok but when the button is clicked nothing happened please help.


这篇关于多选双面jquery不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆