Displaying 1 result from an estimated 1 matches for "draggable_element_j".
Did you mean:
draggable_element_js
2010 Nov 27
2
Something weird about draggable_element_js
Hi,
Because I want to create several draggable elements in a list, I''d
like to do the following:
<script type="text/javascript">
<%- elements.each do |element| -%>
<%= draggable_element_js("element_#{element.id}".to_sym, :revert
=> true) %>
<%- end -%>
</script>
However, if you''d try this in your app, you''ll see that this won''t
work, because the quotes around the ID in the generated javascript are
converted to the HTML-equiva...