问题描述
Hello Team,
我的代码如下:
Hello Team,
I have the Code as follows:
<select id="batchIDSelect" class="combo100">
</select>
其次,我使用此功能如下:
Secondly, I am using this function as follows:
$(function () {
$("select").multiselect();
});
通过使用这个函数,我在BatchID中得到了我想在BatchID中选择的值之前的BatchID上的复选框。但问题是我想在batchId中选中多个id的复选框.How是它可能吗?
例如:我有BatchId 1,2。如果我选中了1和2上的复选框,它应该给出与batchID 1和2相关的记录。
我需要在我的功能中进行哪些更改?
请指导我。
谢谢
Harshal
By using this function ,I am getting the checkbox on the BatchID before the value which i want to select in BatchID .But The problem is i want to checked the checkbox more than one id in batchId .How is it possible ?
For Example:I have the BatchId 1,2 .If I checked the checkbox on 1 and 2 it should give the records related to batchID 1 and 2.
What changes i need to make in my Function ??
Please Guide ME.
Thanks
Harshal
推荐答案
通过使用此函数,我在值whi之前获取BatchID上的复选框我想在BatchID中选择。但问题是我想在batchId中选中多个id的复选框。怎么可能?
例如:我有BatchId 1,2。如果我检查了1和2上的复选框,它应该给出与batchID 1和2相关的记录。
我需要在我的函数中进行哪些更改?
请指导我。
谢谢
Harshal
By using this function ,I am getting the checkbox on the BatchID before the value which i want to select in BatchID .But The problem is i want to checked the checkbox more than one id in batchId .How is it possible ?
For Example:I have the BatchId 1,2 .If I checked the checkbox on 1 and 2 it should give the records related to batchID 1 and 2.
What changes i need to make in my Function ??
Please Guide ME.
Thanks
Harshal
multiple="multiple"
<select id="batchIDSelect" class="combo100" multiple="multiple">
为我工作。
its working for me.
这篇关于我想检查多个ID的复选框,并使用Jquery获取结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!