Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function change_value(val){
- alert ("<%= @alert %>")
- }
- }
- </script>
- <script type="text/javascript">
- function change_value(element){
- <% @element_id = *** element.id *** %>
- alert ("<%= @element_id %>")
- }
- }
- </script>
- <script type="text/javascript">
- function change_value(product){
- <% @billeable_qts[****product.id****] = ***document.getElementById('product.id').value**** %>
- <% @billeable_qts.each do |key, value| %>
- <% alert = "Key = " + key + ", value: " + value.to_s%>
- alert ("product: <%= alert %>")
- <% end %>
- }
- </script>
Add Comment
Please, Sign In to add comment