How to uncheck a check box on another check click and also set the control visibility to false
<p>I write the sample code to un-check a check box on another check box click. At the same time i would like to set the visibilty of control to false based on check or uncheck of check box here is what i have written</p>

<pre><code>&lt;form name="formName"&gt;
&lt;input type="checkbox" name="priorityHigh"
    onclick="if(this.checked) {document.formName.priorityLow.checked=false;}"&gt;High Priority

&lt;input type="checkbox" name="priorityLow"
    onclick="if(this.checked) {document.formName.priorityHigh.checked=false;}"&gt;Low Priority

&lt;asp:TextBox ID="txtLastName" runat="server"  visible=
"false"&gt;
&lt;/asp:TextBox&gt;
&lt;asp:TextBox ID="txtfirstName" runat="server" visible=
"false"&gt;
&lt;/asp:TextBox&gt;
&lt;/form&gt;
</code></pre>

<p>Now assume on first check box click i will have visibility of text box1 now on second check box click i would like to uncheck the first one and set the visibility of textbox1 to false and make the second one visible to true.</p>

<p>Any help please</p>
