🎜>
Javascript:
複製程式碼
程式碼如下:
function check(){
var radio = document.getElementsByName("xingbie"); var checkbox = document.getElementsBy." document.getElementById("opt");
//取得select標籤 var index = select.selectedIndex; var text = select.options[index].value;
//取得radio標籤 for(var i=0;i ).checked){ var val = xingbie.item(i).getAttribute("value"); break; for(var i=0;i if(hobbys[i].checked){ 繼續; }
//提交表單 document.formkk.submit();Java:
複製代碼
代碼如下:
代碼如下:
代碼如下: String text = request.getParameter("text"); //text 字串密碼= request.getParameter("password"); //密碼 String xingbie = request.getParameter("xingbie"); //radio request.getParameter("hidden"); request.getParameter("opt");
|