lutt

jquery--获取多选框的值、获取下拉多选框的值

获取多选框的值

var packageCodeList=new Array();
    $(\'#server_id:checked\').each(function(){
        packageCodeList.push($(this).val());//向数组中添加元素
       });
console.log(packageCodeList) 

 

获取下拉多选框 select   multiple

var packageCodeList=new Array();
	$("#businessRootEnvSelect option:selected").each(function(){
		packageCodeList.push($(this).val());//向数组中添加元素
        });

  





 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-11-21
  • 2021-08-20
  • 2022-12-23
相关资源
相似解决方案