How to set readonly property of a textbox in javascript
<p>i have a textbox whose property i need to set as readonly...
how to set that?
I tried </p>

<pre><code>document.getElementbyid("txtbox").readonly=true;
document.getElementbyid("txtbox").disable=true;
document.getElementbyid("txtbox").setattribute("readonly","readonly");
</code></pre>

<p>all these are not working for me.
Disable is working but that is passing the control values as null to the database...again that is a problem for me..</p>
