Jquery – How to get an element with attribute name and again set a new attribute to the same element?
How to get an element with attribute name and again set a new attribute to the same element, suppose I have an <a href="#" myOwnAttributeName="hello"></a>. Now I know how to select this element using document.querySelectorAll('a[myOwnAttribute="#hello"]') I need to know how…