# Refreshing sortable\_element

**URL:** <https://www.ruby-forum.com/t/refreshing-sortable-element/140304>\
**Category:** Rails\
**Created:** [June 12, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/refreshing-sortable-element/140304 "2008-06-12T19:58:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [June 12, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/refreshing-sortable-element/140304/1 "2008-06-12T19:58:36Z")

</div>

Here’s a question:

I have a sortable collection set up with \<%= sortable\_element … %\>

I want to ajax more elements into the collection, but for them to work i  
have to destroy the sortable and recreate it.

Is there either:

a) a way to pop more elements into a sortable through javascript, or

b) a way to scrape tags off of \<%= sortable\_element %\> so i can  
wrap it in a callable javascript function instead?

Thanks!
