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モーダルダイアログを「真に」モーダルにする方法はありますか?
たとえば、yes / noの確認ダイアログを作成した場合、他の処理を行う前にユーザーからの応答を待つにはどうすればよいですか。
TIA
ダイアログの後のロジックをダイアログのボタンイベントに配置する必要があります。これを使用して、ストリームの途中でメソッドの実行を一時停止することはできません。ネイティブのjavascriptアラート/確認ボックスのみがそれを実行できます。
$( ".selector" ).dialog({ buttons: [ { text: "Ok", click: function() { // do whatever you want on OK. } } ] });
http://jqueryui.com/demos/dialog/