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

285
Views
Cómo seleccionar todas las filas de la tabla (tr) que contenían una clase (jquery)

Tengo una tabla (#tbLog) y necesito seleccionar todas las filas de la tabla (tr) que contienen una clase llamada privada.

Gracias

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Suficientemente simple:

$("#tbLog tr.private").action();

Si tiene tablas secundarias (¿por qué?), use esto en su lugar para seleccionar solo el nivel superior tr s

$("#tbLog > tbody > tr.private").action();

Tenga en cuenta que he incluido tbody en el selector, ya que casi todos los navegadores agregarán esta etiqueta por usted (es parte de la especificación).

over 4 years ago · Santiago Trujillo Report

0

Así se hace:

 $('#tbLog tr.private')
over 4 years ago · Santiago Trujillo Report

0

¿De esta manera?

 $("table#tbLog tr.private")
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!