모르는 부분이 잇어 추가 질문드립니다.
모달코드는 리스트에 넣었습니다.
$('#button_<?php echo $list[$i][wr_id]; ?>_2').click(function() {
var wr_id = $(this).data("wr_id");
var bo_table = $(this).data("bo_table");
$.ajax({
url: g5_url+"/<?php echo $board_skin_url?>/ajax.update.list.extra.php",
type: "POST",
data: {
"wr_id": wr_id,
"bo_table": bo_table,
중략 중략
"wr_5": wr_5,
},
dataType: "text",
async: false,
cache: false,
success: function(data, textStatus) {
sql = data.sql;
}
});
중략부분이 좀 복잡하구요,,모달안에서의 html도 좀 있고 이렇게 띄워야 하는게 여러개라 이걸 모두
리스트에 넣어두기는 아닌거 같아서....
위 js랑 html을 별도 파일로 두고 모달버튼 클릭하면 띄우는 방법을 모르겠습니다.