i tried to do that by :
> document.getElementsByClassName("fa fa-paypal").click;

![]()
and it’s not working ..
I know I can use ID, but I want to use Class
There is no other class with the same name in the site
i tried to do that by :
> document.getElementsByClassName("fa fa-paypal").click;

![]()
and it’s not working ..
I know I can use ID, but I want to use Class
There is no other class with the same name in the site
Run:
document.getElementsByClassName("fa fa-paypal")[0].click();
OR
document.getElementById("paypal").click();
thx very very much , But can I know what this zero is referring to?
@vknow360 thx very very much , But can I know what this zero is referring to?
0 refers to the first element of array returned by that query.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.