I have this radio buttons in html code:
<span><input type="radio" value="false" name="item[shipping]" id="item_shipping_false" checked="checked"><label for="item_shipping_false" class="collection_radio_buttons">No</label></span>
<span><input type="radio" value="true" name="item[shipping]" id="item_shipping_true"><label for="item_shipping_true" class="collection_radio_buttons">Yes</label></span>
and I have 1 disabled field like:
<input id="item_shipping_cost" class="currency optional" type="text" size="30" name="item[shipping_cost]" disabled="disabled">
I want that if an user click in option Yes in radio buttons, remove the html attributedisabled="disabled"
to this last input field, and if user click in option No in radio buttons add the attributedisabled="disabled"
to this last input field
How can I do it with jquery?
thank you!