tags:

views:

79

answers:

1

Is there any obvious reason why this input box is editable?

<input id="username" name="username" class="textfield70pc" readonly="readonly" type="text" value="My username" />

It seems kind of pointless having to use javascript / jquery to disable this text box.

+2  A: 

If you're looking for it to be grayed out, add the DISABLED attribute:

<input id="username" name="username" ... disabled="disabled" />
Jay
To be valid HTML it should be: `<input id="username" name="username" disabled="disabled" />`
Rowno
Yes, of course. I got hasty with the capitalization.
Jay