https://javascript.plainenglish.io/how-to-get-all-attributes-of-an-element-using-javascript-or-jquery-28f362b55ba5