I have a list of numerous users.
Within my table, I display the user's name, an input field for their email address, and a submit button. When I enter a specific user’s email address and click submit, that user will receive their user ID and password in their mailbox.
What I am struggling with is ensuring that only the submit button of the selected user becomes disabled after submission. Currently, due to using a Django for loop in HTML, all submit buttons are being disabled upon submission.
<a id="elementId" href="{% url 'urlabc' %}" onclick="setTimeout(function(){document.getElementById('elementId').this.removeAttribute('href');}, 1);">Click</a>