javascript select anchor element by data attribute value code example Example: select by data attribute $('*[data-id="your_id"]');