2012-07-24 25 views
0

我一直在尋找每個地方,並且當我使用它時教程似乎不工作。我看到的東西像getfullmonthgetfullyears等等......反正,我使用這個代碼:在YUI日曆中選擇的日期的POST值

我的JS:

<script> 
    YAHOO.namespace("example.calendar"); 
    YAHOO.example.calendar.init = function() { 
     YAHOO.example.calendar.cal1 = new YAHOO.widget.CalendarGroup("cal1","cal1Container", {PAGES:1}); 
     YAHOO.example.calendar.cal1.render(); 
    } 
    YAHOO.util.Event.onDOMReady(YAHOO.example.calendar.init);  
</script> 

這是我的HTML:

<input type="text" value="I WANT TO PUT THE SELECTED DATE HERE" id="datechoix" class="n-input2" name="datechoix" readonly="readonly" /> 
<div id="cal1Container" style="margin-top:15px;"></div> 

任何人有一個好的教程或一個完整的答案可能?

回答

相關問題