jQuery UI 대화 상자 기능을 사용하고 있으며 닫을 때 대화 상자에 있던 요소 중 하나를 숨기고 싶습니다.닫을 때 대화 상자의 요소를 숨기는 jQuery 대화 상자
Dialog 함수의 close 이벤트에서이 작업을 시도하고 있지만 작동하지 않습니다. 나는 그 요소가 닫을 때 더 이상 존재하지 않기 때문에 추측하고있다.
다음은 코드입니다.
// Dialog settings for our edit dialog's
$("#myDialog").dialog({
autoOpen: false,
close: function(event, ui){
$("#myDiv").hide();
}
});
<div id="myDialog">
<div id="myDiv">This div should hide when the user closes the dialog, but it stays open when I re-open the dialog.</div>
</div>
사업부는 대화와 숨기기되고 있지? – davidbuzatto
대화 상자의 div가 기본적으로 표시되며 대화 상자를 닫을 때 숨길 수 있습니다. –
또한 CSS를 제공 할 수 있습니까? – haynar