Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

254
Vistas
How to get javascript control from JQuery object?

I'm a beginner in JQuery,

How can I get the control as a javascript object from a JQuery object

var _object = $(this). ??
over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

Most common var _object = $(this)[0];

If you have more than 1 elements matched: $(this)[0], $(this)[1], $(this)[2] and so on.

$(this).get() is also possible. It's only advantage over the array model is that it allows selection of the kind $(this).get(-1) where it gets you the last matched object

over 4 years ago · Santiago Trujillo Denunciar

0

var _object = $(this)[0];

I think this is right, can't check though because I'm on my phone.

over 4 years ago · Santiago Trujillo Denunciar

0

In your case, simply use this.

$(this)[0] == this if this is a DOM element. If it's something else, e.g. a selector, $(this)[0] is the way to go.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda