Clear Rails remote form after submitting

前端 未结 5 1816
刺人心
刺人心 2020-12-31 08:51

I\'m using Rails 3 with jQuery, and have a simple form with a single text input and a submit button. I have the form submitting with :remote => true, and wou

5条回答
  •  天涯浪人
    2020-12-31 09:39

    You can trigger a Rails AJAX submit like this:

    $(this).trigger('submit.rails');
    

提交回复
热议问题