Connecting a script to calendar


hi, i've got datepicker calendar:

 

 

  <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 script:

 

<script> var chosendate = '2012-08-17'; function checkdate(rgn, doit) {     if (doit('{dsdates::datebooked}') == chosendate) {         spry.utils.addclassname('id'+doit('{dsartists::@id}'),'hidden');     } } </script> 

 

but can't work out how make 'var chosendate' in script change chosen in datepicker.

 

thanks



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support