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

108
Views
Altering Stylesheet with javascript?

This is a kind of a follow-up for this thread, someone commented that I shouldn't post it there: Instead of manipulating all elements of a given class, it is possible to alter the class itself.

I do not want to use a function, but rather manipulate a style attribute directly. I do not trust the position of the relevant stylesheet within the other stylesheets, so I added an id to the stylesheet: <style id="items_style">. I haven't found documentation, so by trial and error I found a combination that works at both Chrome and Firefox. Any thoughts?

document.getElementById("items_style").sheet.cssRules.item("ul-tags").style.visibility = 'hidden'
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!