Sebastian Sastre wrote: > Hi there, > > maybe will sound you naif but I've surprisingly found today that > someElement.disable() can't be used for elements that are not inside a > form.
I don't think it's valid HTML to have form input elements (input, button, select, etc) outside of a <form> tag. Different browsers handle different invalid DOM's differently, so I'm not sure you'll have much luck trying to do this. I usually use a dummy form for these kinds of things (not wrapping the whole doc in a form, cause nested forms aren't allowed either). Just use small dummy forms for groups of controls: <form name="ignoreme"> <input type="button"....> </form> -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---