Quantcast
Viewing latest article 2
Browse Latest Browse All 27

is there an effect that changes a save button when a change is made to a form? posted by patrick collins @ Sat, 22 Nov 2008 17:47:59 +0000

For #2, the only way I know how to do that is so something like this in your form:

<%= f.submit "Save", :disabled => "disabled", :id => "save_button" %>

and then on your form elements, you can add

:onchange => "if ($('save_button').disabled) { $('save_button').disabled = false; }"
—or put that in with your onUpdate sortable method…

-patrick


Viewing latest article 2
Browse Latest Browse All 27

Trending Articles