each에 dialog 여러번 나오게는 못하나요?

each에 dialog 여러번 나오게는 못하나요?

QA

each에 dialog 여러번 나오게는 못하나요?

답변 1

본문


        $('.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마다 확인 취소를 넣고 싶은데 어떻게 수정해야 할까요?

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
filter #php ×
전체 15,331
© SIRSOFT
현재 페이지 제일 처음으로