Empty FileUpload Text Using Javascript
<p>I've a fileupload controller in my asp.net form.I've to empty the fileupload text using javascript on radiobutton click.</p>

<p>How will we do that.Here's my code...</p>

<pre><code>&lt;asp:RadioButton ID="rbnImage" runat="server" Text="Image" GroupName="a" 
onclick="SetVisibility(this.id)"
</code></pre>

<p>Javascript goes here</p>

<pre><code>function SetVisibility(id) {
        if (id == 'rbnImage') {
            document.getElementById('fupLogo').style.visibility = 'visible';
            document.getElementById('fupLogo').value = '';                
            document.getElementById('txtText').style.visibility = 'hidden';
        }

    }
</code></pre>

<p>This code is not working.Its working for textbox.    </p>
