ui.datepicker range problem

ui.datepicker range problem


Hi,
Hope someone can help me out with this one.
I'm using the latest version of the ui datepicker and I'd like it to
be able to select a range. I've looked at the examples and as far as I
can see I do it correctly. Here's my
init script:
<input type="text" id="txtDate" />
<script language="javascript" type="text/javascript">
$.datepicker.setDefaults($.extend({ showMonthAfterYear: false },
$.datepicker.regional['sv']));
$("#txtDate").datepicker({ rangeSeparator: ' to ', firstDay: 1,
rangeSelect: true, showButtonPanel: true, numberOfMonths: 3, showOn:
'button', buttonImage: '/Images/Calendar_scheduleHS.png',
buttonImageOnly: true });
</script>
Have I missed something crucial? Right now it closes after i choose
the first date, and I'm not able to choose another.
//Markus


















    • Topic Participants

    • mw