0

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

2
Contributors
1
Reply
8
Views
4 Years
Discussion Span
Last Post by LastMitch
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.