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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我需要在每個不同的選擇中顯示不同的輸入,并且需要其他輸入保持隱藏

我需要在每個不同的選擇中顯示不同的輸入,并且需要其他輸入保持隱藏

梵蒂岡之花 2019-04-17 17:15:15
我需要顯示一個組合框并隱藏其他輸入并僅在我選擇其中一個選項時顯示它們。我試過這個,但是當我選擇一些東西時它們根本就沒有顯示出來。試過我在網(wǎng)上看到的所有東西,但他們根本沒有解決我的問題,我不知道為什么;function showDiv() {  getSelectValue = document.getElementById("hidden").value;  if (getSelectValue == "1") {    document.getElementById("hidden").style.display = "block";  } else {    document.getElementById("hidden").style.display = "none";  }}<select id="select-styled">  <option selected value="">Nessuna selezione</option>  <option value="ds">Disposizioni semplici</option>  <option value="dr">Disposizioni ripetizione</option>  <option value="cs">Combinazoni semplici</option>  <option value="cr">Combinazoni ripetizione</option>  <option value="ps">Permutazioni semplici</option>  <option value="pr">Permutazioni ripetizione</option>  <option value="gs">Gestione stringa</option></select></div><br><div id="hidden" style="width:200px;" onchange="showDiv()">  <label for="nTextField">Inserire n</label><br>  <input type="text" name="textField" class="textField" id="nTextField"><br><br>  <label for="kTextField">Inserire k</label><br>  <input type="text" name="textField" class="textField" id="kTextField"><br><br>  <label for="answerTextField">Ecco la risposta</label><br>  <input type="text" name="textField" class="textField" id="answerTextField"><br><br>  <input type="text" name="textField" class="stringManagement" id="stringManagement"></div>
查看完整描述

2 回答

  • 2 回答
  • 0 關注
  • 368 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號