Quantcast
Channel: Pragmatic Forums | Posts in topic 'is there an effect that changes a save button when a change is made to a form?'
Viewing all articles
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

$
0
0

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 all articles
Browse latest Browse all 27

Trending Articles