본문 바로가기

프로그래밍/제이쿼리

제이쿼리 버튼 클릭 이벤트로 폼 서브밋 시키기

$(document).ready(function(){  //먼저

$("#insert_btn1").click(function(){

if (confirm("등록하시겠습니까?") == true){    //확인

          $("#t_form").submit();  // 폼의 아이디 값

}else{   //취소

return false;

 

}); 

});