日期:2014-05-17 浏览次数:20821 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> </head> <body> <form id="form1" name="form1" method="post" action=""> <p> <select name="select"> <option value="">请选择省份</option> <option value="">广西</option> <option value="">广东</option> <option value="">江西</option> <option value="">贵州</option> <option value="">河南</option> <option value="">河北</option> <option value="">山东</option> </select> </p> <p> <select name="select"> <option value="">请选择省份</option> <option value="">广西</option> <option value="">广东</option> <option value="">江西</option> <option value="">贵州</option> <option value="">河南</option> <option value="">河北</option> <option value="">山东</option> </select> </p> <p> <select name="select"> <option value="">请选择省份</option> <option value="">广西</option> <option value="">广东</option> <option value="">江西</option> <option value="">贵州</option> <option value="">河南</option> <option value="">河北</option> <option value="">山东</option> </select> </p> </form> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script> function selChange1(sel1){ var sel2Value = document.getElementById("select2").value; var sel3Value = document.getElementById("select3").value; if(sel1.value == sel2Value || sel1.value == sel3Value){ //相关操作 alert("存在重复选项"); } } function selChange2(sel2){ var sel1Value = document.getElementById("select1").value; var sel3Value = document.getElementById("select3").value; if(sel2.value == sel1Value || sel2.value == sel3Value){ //相关操作 alert("存在重复选项"); } } function selChange3(sel3){ var sel1Value = document.getElementById("select1").value; var sel2Value = document.getElementById("select2").value; if(sel3.value == sel1Value || sel3.value == sel2Value){ //相关操作 a