Disable/enable element with checkbox and jQuery?
<p>I have a checkbox and if I tick it I want a textfield to become enabled (disabled as default) and when I untick the the checkbox I want it to become disabled again.</p>

<p>I saw here <a href="http://stackoverflow.com/questions/1160238/jquery-checkboxes">http://stackoverflow.com/questions/1160238/jquery-checkboxes</a> how I caan toggle a CSS class and here <a href="http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_disable.2Fenable_a_form_element.3F" rel="nofollow">http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_disable.2Fenable_a_form_element.3F</a> how I can switch between enabled and disabled with two buttons. But how do I toggle a textfields disabled/enabled status by tick/untick a checkbox?</p>

<p>Thanks in advance.</p>
