{% extends base %} {% block script %} $('#form').submit(function(e) { e.preventDefault(); // don't submit multiple times this.submit(); // use the native submit method of the form element $('#action').val(''); // blank the input }); {% endblock %} {% block title %} {% if title %}