亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

如何根據輸入字段禁用 <td>

如何根據輸入字段禁用 <td>

回首憶惘然 2023-08-21 16:57:33
超文本標記語言<input type="text" name="haha"  id="X" ><td style="width: 5%;" class="haha"><svg class="teeth svg" id="svg" width="400px" height="300px" viewBox="0 0 400 300" preserveAspectRatio="xMidYMid meet">    <!-- upper right 8 -->    <g id="molar-group" class="molar">        <rect x="75" y="75" stroke="black" id="disto-occlusal" style="stroke-width: 5px;" width="125" height="150" fill="white"/>        <rect x="200" y="75" stroke="black" id="mesio-occlusal" style="stroke-width: 5px;" width="125" height="150" fill="white"/> </g></svg></td>JavaScript: $(function () {  ($("#X").keyup(function (){      if ($("#X").val() == 'X') {          ('.haha').prop('disabled',true);      }else{          ('.haha').prop('disabled', false);      }  }) };);如何根據輸入字段禁用 td class="haha"。例如,如果我在輸入字段中輸入 X,它會自動禁用 td class="haha" 這可能嗎?
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 141 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號