Rails 4: Disable submit button after click

前端 未结 5 2092
天涯浪人
天涯浪人 2020-12-15 21:54

I have a form_tag(foo_path(@foo), remote: true, id: \'foo-form\' form and a submit button submit_tag (\"Submit\", :id => \"foo-submit\")

<
5条回答
  •  不知归路
    2020-12-15 22:36

    The problem was caused by invalid HTML code. See

    breaks
    disable_with works now

提交回复
热议问题