Reputation: 21
I've read this answer: Programmatically clicking all buttons on a page in Chrome's console
But I'm not be able to fix it for my specific case, because I need to click just one button and I can't find a way to select it, using the name.
The page is this one, for instance: http://ask.fm/god and I would like to select and click the button "view more".
Upvotes: 1
Views: 2438
Reputation: 3057
If i understand correctly that you need to select an element using its name then using this way you can select with name
$('input[value="View more"]').click()
But i would suggest to always select any element using its id or class
Upvotes: 1