0

I'm using htmlbox , I want to disble the text box in some cases ( so the user would not be able to write inside it).

how can i disable it?

Thank's In Advance.

user590586
  • 2,700
  • 15
  • 59
  • 94
  • There are [many](http://stackoverflow.com/questions/2883651/disable-certain-input-element-with-javascript-enabled) [similar](http://stackoverflow.com/questions/372604/html-input-box-disable) [questions](http://stackoverflow.com/questions/2874688/how-to-disable-an-input-type-text-with-javascript) around, you can try to [search and adapt](http://stackoverflow.com/search?q=html+disable+input) one of them. – Albireo Mar 03 '11 at 13:27

1 Answers1

1

With the disabled attribute (which has a matching boolean DOM property)

If you mean read only rather than actually disabled, then there is also readonly.

Quentin
  • 800,325
  • 104
  • 1,079
  • 1,205
  • Dorward: I tried that , but it did not work. I think it's because it's not a regular textarea but an htmlbox jquery plugin. so is there a way to disable the box? – user590586 Mar 03 '11 at 13:44
  • The answer will probably be very specific to that plugin (which should have been mentioned in the original question and probably is too niche to ask outside of a specific support forum for that plugin). I know nothing about it. – Quentin Mar 03 '11 at 13:52
  • I worte in my question that it is htmlbox 4.0. but thank's any way. – user590586 Mar 03 '11 at 13:59
  • Ah. It *looked* like "A text input or textarea in HTML 4" filtered through bad English (which quite a lot of questions suffer from on this site). Beg pardon for the misunderstanding. – Quentin Mar 03 '11 at 14:21