1 $(":checkbox[name='insurace-category']:checked").each(function (index,ele) {
2 var _item = $(".gift_option_item_" + $(ele).val());
3 if (_item && _item.length > 0) {
4 var _premium = $.trim($(_item).find(".custom_inputbox").eq(0).val());
5 var _selectElement = $(_item).find("select");
6 if (_selectElement && _selectElement.length > 0 7 var _amount = $.trim($(_selectElement).val());
8 if (!_amount) {
9 layer.msg("请选择保额!", () {
10 $(_selectElement).focus();
11 });
12 return false;
13 }
14 }
15 _premium) {
16 layer.msg("请输入保费!",1)">() {
17 $(_item).find(".custom_inputbox").eq(0).focus();
18 });
19 20 21 }
22 });