jquery 검색 기능

devkhun·2020년 12월 4일
0
$("#cateUrlSearch").on("keyup", function(e){
	var k = $(this).val();
	$(".allCatCnt > ul").each(function(){
		if ($(this).hasClass("on") == true) {
			$(this).find("li").hide();
			$(this).find("li > a:contains('"+k+"')").parent().show();
		}
	});
});
profile
가늘고 길게 간다

0개의 댓글