<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
'> function selectMember(url,name,width,height) { var name = "选择客户"; var iWidth = 1000; //弹出窗口的宽度; var iHeight = 720; //弹出窗口的高度; var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置; var iLeft = (window.screen.availWidth-10-iWidth)/2; //获得窗口的水平位置; window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no'); }
")'>选择客户
<tr>
<td></td>
<td class="btn">
<input type="button" value="提交" onclick="sub();"/>
</td>
</tr>
</table>
</form>
</div>
</div>
<script type="text/javascript">
function getvalue(){
var cardType = document.getElementById("cardType").value;
document.getElementById("openAmount").value="";
document.getElementById("tip_openAmount").innerHTML = "";
if(cardType == 1){
document.getElementById("a").style.display="inline";
document.getElementById("b").style.display="none";
}else{
document.getElementById("b").style.display="inline";
document.getElementById("a").style.display="none";
}
}
function sub(){
if(isEmptyById("cardNum")){
show("tip_cardNum");
return;
}else{
hide("tip_cardNum");
}
if(document.getElementById("custommerManager.id").value == ""){
show("tip_custommerManagerId");
return;
}else{
hide("tip_custommerManagerId");
}
var cardType = document.getElementById("cardType").value;
var a = document.getElementById("a").value;
var b = document.getElementById("b").value;
if(cardType==1){
document.getElementById("openAmount").value=a;
}
if(cardType==2){
document.getElementById("openAmount").value=b;
}
var openAmount = document.getElementById("openAmount").value;
//alert(openAmount);
if(openAmount==""){
document.getElementById("tip_openAmount").innerHTML ="";
document.getElementById("tip_openAmount").innerHTML ="请输入金额";
document.getElementById("tip_openAmount").style.display="inline";
return;
}else{
document.getElementById("tip_openAmount").style.display="none";
}
if(cardType==1){
if(openAmount==1000||openAmount%1000==0 ||openAmount!=0){
document.getElementById("tip_openAmount").style.display="none";
}else{
document.getElementById("tip_openAmount").innerHTML ="";
document.getElementById("tip_openAmount").innerHTML ="红卡用户金额为1000或1000倍数";
document.getElementById("tip_openAmount").style.display="inline";
return;
}
}
if(confirm("尊敬的用户,您是否确认激活该卡?")){
document.forms[0].submit();
}
}
</script>
这是我的代码 如果
选择客户经理:id="custommerManager.id" style="width: 140px;" >
请选择
这里面的value为""的时候 表单提交不上 如果value有值得话 就可以提交
这是为什么 怎么该呢