Hi all!
I have something like:

<div class="Container">
  <div class="Element">Element 1</div>
  <div class="Element">Element 2</div>
  <div class="Element">Element 3</div>
  <div class="Element">Element 4</div>
  <div class="Element">Element 5</div>
</div>

I think I understand that if I want to insert another "Element" in the
Container I need to type:

$$('Container').first().insert(
     new Template('<div class="Element">#{name}</
div>').evaluate({name: 'Element 6'}));

But how can I insert this new element between "Element 2" and "Element
3"?

Thanks a lot!!!


--~--~---------~--~----~------------~-------~--~----~
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