On a third party site I want to click on the following link to open a modal.
<a data-login-modal href=/login class="link-reset">
I was thinking using the .click() method.
Yet I'm in trouble because that <a> :
- does not have
ID- so I can't use$(#id).click(); - does not have a unique class - so I can't use
$(.class).click();
What is the proper way to use the .click() method on the basis of the href or the <a> name (data-login-modal) ?