2
각 페이지의 이미지가 여러 개 있습니다. 이미지를 클릭 할 때 대화 상자를 열려고하는데, 다음 중 6 개가 내 HTML 설정에 있습니다. CUrrently 이미지를 클릭하면 6 개의 대화 상자가 팝업으로 표시되며 첫 번째 div에있는 것과 동일한 정보가 모두 표시됩니다. 내가 제대로이 일을 내 스크립트를 수정하는 방법 : html로 :Jquery 대화 상자가 여러 대화 상자 열기
<div class="profiles">
<a class="open" href="#">
<img src="/../.jpg"/class="img-full"></a>
<div class="dialog" title="Basic modal dialog">
<p><strong>Some Text</strong></p>
<p>
<strong>Phone</strong>: *********<br />
<strong>Email</strong>: <a href="mailto:[email protected]">SomeEmail</a>
</p>
</div>
</div>
JQuery와 :
<script type="text/javascript">
$(".dialog").dialog({
autoOpen: false,
draggable: false,
position: "center",
width: "300px",
modal: true,
title: "",
buttons: {
"Close": function() {
$(this).dialog("close");
}
}
});
$(".open")
.click(function() {
$(".dialog").dialog("open");
});
</script>
감사하지만 대화 상자 div에 팝업에 필요한 정보가 들어 있습니다. – Mark
업데이트를 참조하십시오. – bhb
대화 상자를 한 번만 열 수 있고 다시 작동하지 않는 이유는 무엇입니까? 어떤 아이디어가 이것을 고치는 방법? – Mark