faqts : Computers : Programming : Languages : Html

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 9 people (56%) answered Yes
Recently 5 of 9 people (56%) answered Yes

Entry

how i can set the readonly property of a textbox which is created dynamically

Nov 13th, 2006 05:25
Matt Chatterley, devi g kurup,


You can do this by using javascript. Embed a script tag
(language=javascript, type=text/javascript) in your page, containing
similar code to this:
var field = document.getElementById('idOfTextBox');
field.readonly = true;