html - Not able to set 'readonly' on text input box -


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

  & lt; Input id = "user name" name = "user name" category = "textfield 70 pc" readonly = "readonly" type = "text" value = "my user name" />  

It seems unusable to use javascript / jquery to disable this text box.

If you are searching for it to be grayed out, then unsupported attribute :

  & lt; Input id = "username" name = "username" ... disabled = "disabled" />  

Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -