Clear Rails remote form after submitting

前端 未结 5 1818
刺人心
刺人心 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:29

    In your model.js file

                   $('#element_id').val(' ');
    

    It work's for me, you can try this.

提交回复
热议问题