Hi All, Please check the below code and let me know whats the problem with the code. <%= sortable_element("parent_drag",:tag=>"div",:handle=>"legend", :dropOnEmpty => true, :constraint=>false,:onUpdate=>"function(){return reorder_collection();}") %> I''m trying to call a JS function, but its not working. Thanks & Regards, Priyadharsini T -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.