each에 dialog 여러번 나오게는 못하나요? 채택완료
예서제이
3년 전
조회 911
</p>
<p> $('.test_input').each( function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height: "auto",
width: 350,
modal: true,
buttons: {
"확인": function() {
$(this).dialog( "close" );
console.log("aaaa");
},
"취소": function() {
$(this).dialog( "close" );
console.log("aaaa"); </p>
<p> }
}
});
});</p>
<p>
test_input 가 2개 이상 있어도 dialog는 한번밖에 실행을 하지 않네요
test_input마다 확인 취소를 넣고 싶은데 어떻게 수정해야 할까요?
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인