I’m trying to figure out a way to click this with JavaScript’s .click()
<input type="button" class="button" value="Test">
Is there a way to do that with the given attributes or do I need to add more (Id or Name) so I can use getElementby?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you could do it with getElementsByTagName(“input”) and look for items with an attribute type of button– but you’re better off getting it with an id attribute.