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

349
Views
¿Selector de CSS para seleccionar una identificación con una barra en el nombre de la identificación?

Tengo <span id="/about-us"> generado por este CMS que estoy usando.

Me gustaría seleccionar este elemento con jQuery, pero parece que no le gusta seleccionar elementos con una barra inclinada.

es posible?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

tu puedes hacer

 $("#\\/about-us")

over 4 years ago · Santiago Trujillo Report

0

puedes hacerlo así

 $("span[id*='/about-us']")

donde devolverá el lapso con '/ about-us' en su atributo id.

over 4 years ago · Santiago Trujillo Report

0

Utilice la forma habitual:

 document.getElementById('id/with/slashes')
over 4 years ago · Santiago Trujillo 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!