Hi I have a datepicker:

  <input class="dmxCalendar2" name="dmxCalendar21" id="dmxCalendar21" />
<script type="text/javascript">
  // <![CDATA[
 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>

And also a script:

<script>
var chosenDate = (document.getElementById("dmxCalendar21").value !=""  )? document.getElementById("dmxCalendar21").value :  '2012-08-14' ;

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

I'm trying to make it so that when a date is picked it will connect with the 'var chosenDate' part of the script. I've tried getElementById but it does'nt work.

Thanks

Member Avatar

LastMitch

I'm trying to make it so that when a date is picked it will connect with the 'var chosenDate' part of the script. I've tried getElementById but it does'nt work.

I think someone already mention a couple of suggestion here:

http://forums.adobe.com/thread/1035244