哪位大虾帮帮忙,给100分
怎么样能在下面程序中添点东西,实现ceshi2文本框必须输入数值包括小数的功能
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
function check(){
if (form1.ceshi1.value==""){
alert("不能为空");
return false;
}
}
</script>
</head>
<body>
<form name="form1" method="post" action="">
<p>
<input name="ceshi1" type="text" id="ceshi1">
</p>
<p>
<input name="ceshi2" type="text" id="ceshi2">
<input type="button" name="Submit" value="按钮" onClick="check()">
</p>
</form>
</body>
</html>