jquery asp.net combo box question
<p>I have a small form with a combo box (ASP.NET Drop Down List control) and a text box (with a DIV id txtName).  When the selected index of the combo box changes, I want to clear out the text box.</p>

<p>I understand that the follow clears the text box value:</p>

<pre><code>$("#txtName").val('');
</code></pre>

<p>The thing is the combo box.  It contains a list of integers representing the months of the year.  The drop down control is called ddlMonths.</p>

<pre><code>$("#ddlMonths").change(function() {
    $("#txtName").val('');
});
</code></pre>

<p>I thought by using change, an onSelectedIndexChange event handler would be associated with this control.</p>

<p>I also tried (because I've ran into the client id being mangled in ASP.NET w/ jQuery) this:</p>

<pre><code>$("#&lt;%=ddlMonths.ClientID%&gt;").change(function() {
    $("#&lt;%=txtName.ClientID%&gt;").val('');
});
</code></pre>

<p>and neither approach seems to be working.  Am I missing something?</p>
