Disabled submit button

Greetings all,

I created a form_remote_for form for some AJAX jobs and I would like the
submit button to be disabled when you click the submit button and
reenable it after the jobs are finished, so I add a

:onclick => “document.getElementById(‘addub’).disabled = true”

for the submit_tag, but I found that this will break the other functions
(the corresponding RJS file I’ve written for highlighting and reenable
the button) in IE6. All are OK in Firefox, could anyone tell me how to
archive this in both IE6 and Firefox? thanks very much!

Cheers,
Difei

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs