OK, interesting - I didn´t know that the browser would avoid this.
Thanks!

> Hence your issues.
Actually I don´t want to wrap just a single HTML-Element around $
("myElement"), that´s why Element.wrap is not the function I am
searching for(?).

What I want looks something like this ...

JavaScript:
$("myElement").insert({before: '<span><h1>Lorem ipsum</h1>Some Text or
more HTML-Stuff'});
$("myElement").insert({after: '</span>'});

My desired HTML:

<span>
  <h1>Lorem ipsum</h1>
  Some Text or more HTML-Stuff
  <span id="myElement"></span>
</span>

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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