Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ダイアログ内の何かをクリックしたときにjqueryダイアログを閉じるにはどうすればよいですか?
$('content_in_the_dialog').click(function(){ close the dialog });
そんな感じ。だから私の質問は、ダイアログを閉じるためにそこにどのコードを入力する必要があるかということです。
以下のようにcloseメソッドを呼び出すだけです。
$('#dialog_selector').dialog('close');
http://jqueryui.com/demos/dialog/#method-close