Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
Userscript/Tampermonkey click button with no id

I am extremely new so please explain as simply as possible to me. I'm trying to press a button that pops up as confirmation automatically, but it has no ID and so I can't figure out how. The buttons html is <input type="button" class="beigebutton thingbutton dialog-submit" value="Okay">

I've tried document.querySelector('#button').click() with button being replaced by everything I can find, as well as const inputElement = document.querySelector('input[value="Okay"]'); inputElement.click();

I've also tried document.querySelector("#archaeology-dialog > div > input") but nothing seems to actually work. I appreciate any help given, I'm very new and this has me stumped.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!