我正在打开一个 .dialog 模式并加载 html。我将 jQuery selectable 应用于 html 中并显示在 .dialog 模式中的列表。Selectable 不起作用,正在显示列表的直接 html。
代码:
$jQuery('#calendar').fullCalendar({
...
dayClick:
...
var $test_dialog = jQuery('<div></div>').html('<ul id="selectable">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>').dialog(//buttons);
}) // end fullCalendar
$test_dialog.dialog('open')
jQuery('#selectable').selectable();
其他详情:
我正在页面上加载 fullCalendar,当用户单击日历时,会打开带有列表的 .dialog 模式。
感谢您的任何建议。