任何jQuery函数都可以访问这些值。谢谢 $('calendar').fullcalendar({ ... select: function (startDate, endDate) { $('#newEventPopup').dialog('o
任何jQuery函数都可以访问这些值。谢谢任何jQuery函数都可以访问这些值。谢谢 $('calendar').fullcalendar({ ... select: function (startDate, endDate) { $('#newEventPopup').dialog('o,jquery,fullcalendar,jquery-ui-dialog,Jquery,Fullcalendar,Jquery Ui Dialog,任何jQuery函数都可以访问这些值。谢谢 $('calendar').fullcalendar({ ... select: function (startDate, endDate) { $('#newEventPopup').dialog('open'); <div title = 'How cool is this event?' id='newEventPopup'> <select id='coolness'> <opti
$('calendar').fullcalendar({
...
select: function (startDate, endDate) {
$('#newEventPopup').dialog('open');
<div title = 'How cool is this event?' id='newEventPopup'>
<select id='coolness'>
<option value = 'super'>Super!</option>
<option value = 'cool'>Cool</option>
<option value = 'dorky'>Dorky</option>
<option value = 'lame'>Lame!</option>
</select>
</div>
var coolness = $('#coolness');
$('#newEventPopup').dialog({
modal: true,
autoOpen: false,
...
button: {
Save : function (){
$.ajax({
url: 'sample.php'
type: 'POST'
data: {
'start' : startDate,
'end' : endDate,
'coolness' : coolness
}
success: $('calendar').fullCalendar('refetchEvents')
}
}
}
});