Bootstrap multi-select select 所有选项值
Bootstrap multi-select select all option value
我正在使用 bootstrap-multiselect 插件。
jQuery
$("#country").multiselect({
enableFiltering: true,
includeSelectAllOption: true,
numberDisplayed: 2,
maxHeight: 400,
buttonWidth: '100%',
selectAllValue: '0'
});
当我 select select 所有选项并提交代码时,我在服务器 side.But 中得到所有其他选项的数组,我正在为 [=26] 分配值 0 =] 我没有在服务器 side.How 中获得的所有选项 当我 select select 所有选项时,我可以在值数组中包含值 0 吗?
如 Server Side Processing section of the documentation, the selectAllValue
merely alters the value submitted. However, in order to correctly submit the select all option, you have to set the name of the select all option using selectAllName
. Btw: when aiming to process the multiselect data server side, you should also use checkboxName
中所述。
我正在使用 bootstrap-multiselect 插件。
jQuery
$("#country").multiselect({
enableFiltering: true,
includeSelectAllOption: true,
numberDisplayed: 2,
maxHeight: 400,
buttonWidth: '100%',
selectAllValue: '0'
});
当我 select select 所有选项并提交代码时,我在服务器 side.But 中得到所有其他选项的数组,我正在为 [=26] 分配值 0 =] 我没有在服务器 side.How 中获得的所有选项 当我 select select 所有选项时,我可以在值数组中包含值 0 吗?
如 Server Side Processing section of the documentation, the selectAllValue
merely alters the value submitted. However, in order to correctly submit the select all option, you have to set the name of the select all option using selectAllName
. Btw: when aiming to process the multiselect data server side, you should also use checkboxName
中所述。