0
可以在對話框中添加一個切換窗口嗎?該對話框打開並單擊鏈接內部將滑下窗體。所以我有對話框jQueryUI在對話框中切換
$('a.open_dialog').click(function() {
$('<div />').appendTo('body').load($(this).attr('href')).dialog({
title: $(this).attr('title'),
modal: true,
draggable: false,
width: 800,
position: 'top'
});
return false;
});
,我想有內部
$('a.mailer').click(function() {
$('#contact-wrapper').show();
});
在jQuery 1.7 ** *的*,'.live()'方法已被棄用。使用'.on()'附加事件處理程序。老版本的jQuery用戶應該使用'.delegate()'而不是'.live()'。 –
實例: '$(選擇器).live(事件,數據,處理程序);'// jQuery的1.3+ '$(文件).delegate(選擇器,事件,數據,處理程序);'// jQuery的1.4。 3+ '$(document).on(events,selector,data,handler);'// jQuery 1.7+ –