Przeglądaj źródła

multiCheckBox 관련 초기화 처리

eskim 4 lat temu
rodzic
commit
8dbf4fe42c

+ 6 - 0
src/main/webapp/WEB-INF/views/display/GoodsCategoryForm.html

@@ -733,6 +733,7 @@
 				$("#cateGb"+i).val('');
 				$("#leafYn"+i).val('');
 			}
+			
 		});
 
 		// 전시카테고리 삭제
@@ -851,6 +852,11 @@
 			$('#goodsSearchForm input[name=supplyCompList]').val('');
 			$('#goodsSearchForm').find('#brandText').html('');
 			$('#goodsSearchForm').find('#supplyCompText').html('');
+			
+			$(document).find('#goodsSearchForm').find(".multiCheckBox").each(function(i, e){
+				let btnNm = $(this).find(".sltBtn").attr("data-name");
+				$(this).find(".sltBtn").text(btnNm);
+			});
 		});
 
 		$(document).ready(function() {