How to POST a django form with AJAX & jQuery

后端 未结 6 983
南方客
南方客 2020-11-28 00:49

I\'ve checked out tons of tutorials for django AJAX forms, but each one of them tells you one way of doing it, none of them is simple and I\'m a bit confused since I\'ve nev

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 01:32

    As the other answers do work, I prefer to use the jQuery Form Plugin. It fully supports what you want and more. The post view is handled as usual in the Django part, just returning the HTML that is being replaced.

提交回复
热议问题