Quotidien Shaarli

Tous les liens d'un jour sur une page.

July 7, 2020

How to accessibly disable a form button when submitting with Ajax using vanilla JS | Go Make Things
thumbnail

If you have a form that gets submitted using a JavaScript Ajax call (via an API or something) instead of a page reload, you might want to disable the submit button so that the user doesn’t try to resubmit the form while you’re waiting for the API to return a response.