Forms don''t behave like other HTML elements. You need to use
something like:
var n = $("some_form_id");
n.parentNode.removeChild(n);
On Jun 10, 11:21 am, ChrisT <[EMAIL PROTECTED]> wrote:
> Having a strange problem with replacing a form with another form. If I
> do this
> Element.replace("some_form_id", "<form>dummy text</form>") where
> "some_form_if" is the id of a form element only the text between the
> form tags is inserted, not the form tags. Tend to think I must be
> doing something dumb, as can't find any discussions on this anywhere.
>
> I'm using 1.5.0 and testing on Firefox 2.0 with Firebug.
> Thanks
> Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---