disable textbox by jquery
<p>I'm trying to disable textbox using jquery:</p>

<pre><code>$('#&lt;%=txtFrom.ClientID %&gt;').attr('disabled', true);
</code></pre>

<p>It looks as disabled: <img src="http://i.stack.imgur.com/oSvIX.png" alt="image">, but actually it's not, I can write there. Why?</p>

<p><strong>UPDATE:</strong> Fixed by adding input in the code:</p>

<pre><code>$('#&lt;%=txtFrom.ClientID %&gt; input').attr('disabled', true);
</code></pre>
