adding an attribute to an html tag

how to add a readonly attribute dynamicaly in input tag using javascript
October 14,
Something like :


Or maybe you can try to go with "disabled":

<input type="..." disabled="disabled" />

Disabled inputs are still visible to human readers. Even if they're grey'ed as disabled, changing this is just a matter of CSS ;-)
Athanagor Wurlitzer
October 25,

This topic is archived.

See also:

Back to support forum