Topic: see the changed order without submitting

I've been struggling with this (most likely) simple problem for many days, because I'm not familiar with javascript

Edit view:

<%= form_for(@books) do |books| %>
  <%= books.select :order, options_for_select ([[books.object.order, books.object.order],["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6", "6"], ["7", "7"], ["8", "8"]]) %>
  <%= books.text_field :name %>

I'd like to edit the order of the books and be able to see the new order of the books - without submitting anything. Pure javascript in other words.
How would I do this?

Thanks for any help!

Last edited by sveiae (2011-05-04 16:53:16)