disable on submit

This commit is contained in:
j 2025-01-08 15:04:07 +05:30
parent 36d423f57a
commit 850ecc97c8

View File

@ -20,6 +20,7 @@
<script> <script>
$('#captcha').on({ $('#captcha').on({
click: function() { click: function() {
this.disabled = true
var token = $('input[name="csrfmiddlewaretoken"]')[1].value; var token = $('input[name="csrfmiddlewaretoken"]')[1].value;
$('#csrf').val(token) $('#csrf').val(token)
$('#contact').submit() $('#contact').submit()