How to clear TextBox text and AJAX CalendarExtender value using Javascript?
<p>I have an ASP.NET user control that contains a textbox which has an AJAX CalendarExtender control which allows users to select a date which then populates the textbox.</p>

<p>I can clear the textbox value using a submit button and setting the value to null in the code behind, but I need to set the value to "" in the textbox using Javascript.</p>

<p>I have tried the following javascript but it didn't work:</p>

<pre><code>function ClearTextBox() 
{
    document.getElementsByName('TextBox1').Value = "";
}
</code></pre>

<p>What javascript should I use?</p>
