 <p>If you just want to enable/disable input:</p> <pre><code>$("#your_input").attr('disabled','disabled'); // disable $("#your_input").removeAttr('disabled');//enable </code></pre> <p>Example:</p> <p><a href="http://jsfiddle.net/juvian/R95qu" rel="nofollow">http://jsfiddle.net/juvian/R95qu</a></p>