Unable to enable datepicker field after disabling
<p>I've written the following code to disable a return date field from an itinerary if a 'one-way' checkbox is clicked.</p>

<p>Problem is, it works on jsFiddle, but not when the input field is a jQuery DatePicker field, which I'd like it to be.</p>

<pre><code>$('#returndate_true').click(function(){
    $('#returndate').removeAttr("disabled");
    $('#returnflex').removeAttr("disabled");
});

$('#returndate_false').click(function(){
    $('#returndate').attr("disabled",true);
    $('#returnflex').attr("disabled",true);
});

&lt;span&gt;&lt;input type="radio" value="true" name="traveltype" id="returndate_true"&gt;&lt;label for="returndate_true" class="collection_radio_buttons"&gt;Return-trip&lt;/label&gt;&lt;/span&gt;&lt;span&gt;&lt;input type="radio" value="false" name="traveltype" id="returndate_false"&gt;&lt;label for="returndate_false" class="collection_radio_buttons"&gt;One-way&lt;/label&gt;&lt;/span&gt;
                &lt;input class="cdate" name="date_return" size="13" id="returndate" disabled="disabled" /&gt;
                &lt;select id="returnflex" name="return_flex" disabled="disabled"&gt;
                    &lt;option value="no flex"&gt;No Flexibility&lt;/option&gt;
                    &lt;option value="plusmin 1day"&gt;+/- 1 day&lt;/option&gt;
                    &lt;option value="plusmin 2days"&gt;+/- 2 days&lt;/option&gt;
                    &lt;option value="plusmin 3days"&gt;+/- 3 days&lt;/option&gt;
                    &lt;option value="same week"&gt;Same Week&lt;/option&gt;
                &lt;/select&gt;&lt;/font&gt;&lt;/b&gt;
</code></pre>

<p><a href="http://jsfiddle.net/wK6Y4/" rel="nofollow">Check out the demo here</a>. (stripped it down to the essentials).</p>

<p>Does anyone have experience with this?</p>

<p>Thanks in advance,
Sh.</p>
