each에 dialog 여러번 나오게는 못하나요?
본문
$('.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");
}
}
});
});
test_input 가 2개 이상 있어도 dialog는 한번밖에 실행을 하지 않네요
test_input마다 확인 취소를 넣고 싶은데 어떻게 수정해야 할까요?
!-->
답변을 작성하시기 전에 로그인 해주세요.