jquery ui modal 해결이 안되네요
$(document).ready(function(){
$('a[name=modal]').click(function(event) {
event.preventDefault();
var $this = $(this);
var id = $this.attr('href');
var dialogOpts = {
title: ($this.attr('title')) ? $this.attr('title') : '상세보기',
autoOpen: true,
width: 670,
modal: true,
resizable: true,
autoResize: true,
buttons: {
"닫기": function() {
$(this).dialog("close");
}
},
open: function() {
$("#example").load("id");
}
};
$("#example").dialog(dialogOpts);
$('a[name=modal]').click(function(event){
event.preventDefault();
$("#example").dialog("open");
return false;
}
);
});
});
리스트의 링크주소를 모달로 가져오는건데요
id를 찾기는 하는데 가져오질 못합니다.
요놈을 지금 몇시간씩이나 쭈물럭거리고 있네요 이제 머리 스팀받을라고 합니다
도와주세요
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 9개
==>
var id = $this.get(0).getAttribute('href');
id대신에 url암꺼나 집어넣으면 잘불러오거든요
혹시
$("#example").load( id );
???
아~~ 미치고 돌아가시겠네요 이제 잘나옵니다