On Mar 16, 8:45 am, Colin Mollenhour <[EMAIL PROTECTED]>
wrote:
> Will the readonly attribute not work?
> <input type="text" readonly />
> Or in JS, I think you can do element.readonly="readonly" but I'm not
> sure if that is the correct way offhand.

It isn't.  The W3C DOM 2 HTML spec defines an HTMLInputElement
interface with a "readOnly" attribute that is a boolean[1].

So:

  element.readOnly = true;


1. <URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-88461592 >


--
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to