在给text文本框加了runt=server后如何还能让它通过js写的显示和隐藏功能实现?

10
50
100
200
500
1000
其他

<br> function rbt7_Click()<br> {<br> var mytext = document.getElementById(&quot;text1&quot;);<br> if(mytext.style.visibility == &quot;hidden&quot;)<br> {<br> mytext.style.visibility = &quot;visible&quot;;<br> }</p> <pre><code> } function rbt1_Click() { var mytext = document.getElementById(&quot;text1&quot;); if (mytext.style.visibility == &quot;visible&quot;) { mytext.style.visibility = &quot;hidden&quot;; } } &lt;/script&gt; C#代码 if (rbt7.Checked == true) { cmd.Parameters.AddWithValue(&quot;@Funds&quot;, text1.Value); } </code></pre>

https://zhidao.baidu.com/question/1046255051269191859.html