set readonly and not readonly property in javascript

by Ramya 2009-09-30 20:04:09

Javascript readonly property:

Set readonly property using javascript
var v2 = document.df.val1;
v2.readOnly = true;

Set not readonly property using javascript:
var v2 = document.df.val1;
v2.readOnly = false;

Tagged in:

1829
like
0
dislike
0
mail
flag

You must LOGIN to add comments