为什么alert不出所选择的日期?
请浏览http://218.9.186.36/aaa/selectDate.asp这个地址看看为什么点击按钮时得不到所选的日期?
selectDate.asp的源代码如下:
<!--#include file="selectDate.inc" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="selectDate.css" rel=stylesheet>
<title>Untitle Document</title>
</head>
<body>
<form name="form1" action="" method="post">
<input type="hidden" name="cjrq">
<input type="hidden" name="cjrdh">
<script language=javascript>
aa=getValidDate(document.form1.cjrq.value)
bb1=aa.substring(0,4);
bb2=aa.substring(5,7);
bb3=aa.substring(8);
var aaa = createDatePicker('aprq',bb1,bb2,bb3);
aaa.setFormat('yyyy-mm-dd');
</script>
</form>
<input type="button" value="显示所选时间" onclick="javascript:alert(form1.cjrq.value)">
</body>
</html>