为什么这个表单提交掉不到这个checkdata函数啊,哪里错了啊

来源:百度知道 编辑:UC知道 时间:2024/07/05 07:02:41
这是jsp生成的html代码

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>

<script type="text/javascript">
<!--
alert("ok");
function checkdata() {

with(document.forms["complex"]) {

if (lownormalprice.value = null || lownormalprice.value = "") {
lownormalprice.value = -1;
}

if (highnormalprice.value = null || highnormalprice.value = "") {
highnormalprice.value = -1;
}

if (lowmemberprice.value = null || lowmemberprice.value = "") {
lowmemberpri

<form action="productsearch.jsp" method="post" name="complex" onsubmit="checkdata()" > 中onsubmit="returncheckdata() "

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>
<script type="text/javascript">
<!--
alert("initial");
function checkdata() {
with(document.forms["complex"]) {
if (!lownormalprice.value) {
lownormalprice.value = -1;
}

if (!highnormalprice.value) {
highnormalprice.value = -1;
}