欄位display none 用法

  • Share this:

function show_tr(value) { if(value) form1.cbtr21.style.display=""; else form1.cbtr21.style.display="none"; }

function close_tr(value) { if(value) form1.cbtr21.style.display="none"; else form1.cbtr21.style.display=""; }

-----------------------------------------------------------------------------------------------------------------------------

<!--

<input type="radio" name="Comp_http" value="N" onclick="close_tr(this.checked)" checked  >無 <input type="radio" name="Comp_http" value="Y" onclick="show_tr(this.checked)">有 <input type="text" name="Comp_http2" size="40" maxlength="100" style="display:none" id="cbtr21">

-->


Tags: