Text box in td losing value when div is disabled
<p>I have a JavaScript function DisableDuedate() that disables a td tag based on the logged in user. 
The td tag contains a text box that is populated on Page_load (vb code behind page).
The DisableDueDate() function is called in the HTML page</p>

<pre><code>&lt;body onload='scrollBar(null,null,"red");' onload='DisableDueDate();'&gt;
</code></pre>

<p>The function is defined in the head tag</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;

            function DisableDueDate()
            {
                var udisable = '&lt;%=dueDateDisabled %&gt;';
                                                        if (udisable == "true")
                    document.getElementById("divduedate").setAttribute('disabled',true);
                else
                    document.getElementById("divduedate").setAttribute('disabled',false);

            }
    &lt;/script&gt;
</code></pre>

<p>This works fine but the value of the textbox that is in the td tag is displaying 0 when the div tag is disabled.
How to retain the text box value when the enclosing div tag is disabled ?</p>
