jquery attr(readonly) function not working
<p>I am working with AST.Net and jQuery 1.8.3.</p>

<p>I want to make a textbox's readonly property to be true on pageload and false when a script runs. My code goes like this:</p>

<pre><code>  function showdiv() {

    $("#diviv").fadeIn("slow");
    $("#txtname").attr('readonly', false);
    $("#txtmobile").attr('readonly', false);
    $("#txtemail").attr('readonly', false);
}
</code></pre>

<p>I want to make the readonly property of these three textboxes to be false when the function <code>showdiv</code> runs. Also I am making a div visible when the script runs. But it's not making it false. Please give me some suggessions how to make it run and tell me where the problem is.</p>
