1

嗨,我有一个日期选择器:

  <input class="dmxCalendar2" name="dmxCalendar21" id="dmxCalendar21" />
<script type="text/javascript">

jQuery(document).ready(
function()
 {
 jQuery("#dmxCalendar21").dmxCalendar2(
     {"altFormat": "yy-mm-dd", "condDates": [], "firstDay": 1, "showOn": "both",            
    "duration": "slow", "showOptions": {"direction": "up", "easing": "swing"},"yearRange": "c-  10:c+10", "onSelect": "MM_goToURL(\'parent\',\'allactstest.html\');"}
   );
  }
  );

 </script>

还有一个脚本:

<script>
var chosenDate = '2012-08-14'; 
function checkDate(rgn, doIt) {
if (doIt('{dsDates::datebooked}') == chosenDate) {
    Spry.Utils.addClassName('id'+doIt('{dsArtists::@id}'),'hidden');
}
}
</script>

但是我需要它,所以当日期选择器中的日期更改时,脚本的 'var selectedDate 部分会随之更改吗?

4

0 回答 0