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?

4 of 8 people (50%) answered Yes
Recently 4 of 8 people (50%) 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;