第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

表單容器輸入值問題

表單容器輸入值問題

PHP
慕桂英3389331 2023-11-06 15:34:42
HTML 頁面中有提供訪問權(quán)限和撤銷訪問權(quán)限的單選按鈕。單擊提供訪問權(quán)限時(shí),它將顯示一些選項(xiàng)以從用戶處獲取值,這在沒有螞蟻問題的情況下工作,與單擊撤銷訪問按鈕相同,它將顯示一些選項(xiàng)以從用戶處獲取值。但這里的問題是撤銷訪問權(quán)限也從提供訪問單選按鈕獲取值。知道下面的代碼有什么問題嗎<html><head>  <script type="text/javascript">    function empty() {      var x;      x = document.getElementById("qx").value;      y = document.getElementById("pwd").value;      if (x == "") {        alert("QX number should not be null");        return false;      };      if (y == "") {        alert("Password should not be null");        return false;      };    }  </script>  <style>    .top {      position: relative;      background-color: #ffffff;      height: 68px;    }        .top1 {      top: 110px;      left: 476px;      position: fixed;      background-color: #ffffff;      height: 70px;    }  </style></head><body>  <script type="text/javascript">    function displayForm(c) {      if (c.value == "1") {        document.getElementById("provideContainer").style.visibility = 'visible';        document.getElementById("revokeContainer").style.visibility = 'hidden';      } else if (c.value == "2") {        document.getElementById("provideContainer").style.visibility = 'hidden';        document.getElementById("revokeContainer").style.visibility = 'visible';      } else {}    }  </script>  <center>    <font color="green">      <h2>Please Select the below option</h2>    </font><br>    <form>      <input value="1" type="radio" name="formselector" onClick="displayForm(this)"></input>      <font size="3" color="orange">Provide Access</font>      <input value="2" type="radio" name="formselector" onClick="displayForm(this)"></input>      <font size="3" color="orange">Revoke Access</font>    </form>
查看完整描述

1 回答

?
波斯汪

TA貢獻(xiàn)1811條經(jīng)驗(yàn) 獲得超4個(gè)贊

如果您的意思是使用 Javascript 檢查 qx 號(hào)碼和密碼是否為空,這是因?yàn)槟诔蜂N中分配輸入并提供相同的 id 進(jìn)行檢查。

(id =“qx”和id =“pwd”)

這就是 id 的作用。它應(yīng)該只在該網(wǎng)站上存在一次。


查看完整回答
反對(duì) 回復(fù) 2023-11-06
  • 1 回答
  • 0 關(guān)注
  • 142 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)