jquery multiple checkboxes array

前端 未结 6 1355
孤独总比滥情好
孤独总比滥情好 2020-12-04 19:45




        
6条回答
  •  有刺的猬
    2020-12-04 20:01

    If you have a class for each of your input box, then you can do it as

            var checked = []
            $('input.Booking').each(function ()
            {
                checked.push($(this).val());
            });
    

提交回复
热议问题