[TIL] jquery 선택자 여러개 선택하기

Yuri Lee·2021년 9월 29일
0

Intro

  • 동일한 선택자에게 함수를 적용시켜야 했다. (코드의 비효율성을 방지하기 위해서 😀)

Example

$(function(){

	$("#e_sdate, #e_edate, #e_date_dang, .class, #id, input, span").datepicker({
	    showOtherMonths: true,
	    selectOtherMonths: true,
	});
});


https://tibang.tistory.com/entry/jquery-%EC%84%A0%ED%83%9D%EC%9E%90-%EC%97%AC%EB%9F%AC%EA%B0%9C-%EC%9A%94%EC%86%8C-%EC%97%AC%EB%9F%AC%EA%B0%9C-%EC%84%A0%ED%83%9D%ED%95%98%EA%B8%B0

profile
Step by step goes a long way ✨

0개의 댓글