sortable_element-onUpdate

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