下面是我有的一部分代碼,爲什麼不調用init函數?我想在這裏使用的JavaScript http://www.openjs.com/scripts/ui/calendar/javascript init不啓動
<link href="http://www.openjs.com/scripts/ui/calendar/calendar.css" type="text/css" rel="stylesheet" /><script type="text/javascript">
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.openjs.com/scripts/ui/calendar/calendar.js"></SCRIPT>
<script language="javascript">
function init() {
calendar.set("DOB");
}
</script>
<input name="DOB" id="DOB" value="Client's Date of Birth"/>
您是否確定輸入元素已準備好?當calendar.set被調用? – jebberwocky 2010-11-11 07:28:49