function generalShowPopup(click_element, show_elements) {
click_element.on("click", function(event) {
show_elements.each(function() {
$(this).show();
});
event.preventDefault();
});
}
위의 함수를 사용하여 특정 링크를 클릭 할 때 요소를 표시하려고합니다. 특정 링크를 클릭 할 때 즉 두 요소를 보여여러 함수를 각 함수에 전달
generalShowPopup($(".popup_link"), $(".popup"));
을하지만 어떻게 내가 두 번째 인수로 두 가지 요소를 전달할 수 :
미세이 (한 두 번째 인수)와 같은 기능을 작품 호출?
당신은 한 번에 두 가지 요소 또는 두 요소를 의미? 각 .popup 선택기가 두 요소를 일치 시키면 두 요소를 나타낼 수 있습니다. –