回覆列表
  • 1 # 小龍人578435

    <input type="radio" name="radioname" value="ALL" checked/>全部<input type="radio" name="radioname" value="Y" />是<input type="radio" name="radioname" value="N" />否js:var radioValue = getRadioValue("radioname");function getRadioValue(radioName){ var radios = document.getElementsByName(radioName); var value; for(var i=0;i<radios.length;i++){ if(radios[i].checked){ value = radios[i].value; break; } } return value;}jq:var radioValue = $("input:radio[name="radioname"]:checked").val();

  • 中秋節和大豐收的關聯?
  • 請問有關於爭奪的成語嗎?