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

155
Views
Does "id" become unique if the display property of the element with the same id is set to "none"?

Let's say you have a DIV element with id="row" in your document. And then you inserted a new DIV with the same id name and set the display property of the previous DIV to "none". Does that id of the newly created DIV become unique?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

No. Display:none is just a CSS property. Which means the element doesn't render in the view. But it exists in DOM. It exists in your syntax, and JS can work with it.

about 4 years ago · Juan Pablo Isaza Report

0

No..It doesn't matter if they are hidden(display :"none")or not they are still in the document. Even if they are created dynamically they shouldn't have the same ID. "it's not a valid markup"

about 4 years ago · Juan Pablo Isaza Report
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!