找错
=================================
function qbg(){
var hf=document.getElementById("id1").value;
var ye=document.getElementById("id2").value;
if(hf>ye){
alert("钱不够");
return false;
}
}
======================================================
<body><form action="23.html">
<input type="hidden" id="id1" value="100" />
<input type="hidden" id="id1" value="50" />
<input type="submit" value="提交" onclick="return qbg()" />
==========================================================
为什么根本就没有做比较 直接提交到23.html??望高手解答 跪求