Can i pass the ID name in an onChange event for a textbox?
<p>I have 3 textboxes to do a check on the entered date.  The code I originally had was for one textbox.  Is there a way to pass an ID name to the onChange event</p>

<pre><code>&lt;asp:TextBox ID="txtDate" runat="server" Width="110px" onChange="checkEnteredDate('txtDate')"&gt;&lt;/asp:TextBox&gt;

function checkEnteredDate(var textBox = new String();) {
            var inputDate = document.getElementById(textBox);
            //if statement to check for valid date
            var formatDate = new Date(inputDate.value);
            if (formatDate &gt; TodayDate) {
                alert("You cannot select a date later than today.");
                inputDate.value = TodayDate.format("MM/dd/yyyy");
            }
}
</code></pre>
