nvalidreasons: $("#invalidreasons").val(),
                    },
                    success: function (data) {
                        console.log(data)
                    },
                    error: function (error) {
                        console.log(error)
                    },
                });

            });
        });
    </script>
    <script>
        $(document).ready(function () {
            $("#reasons-button").click(function () {
                var patched = "{% url