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

190
Views
$ (esto) arroja TypeError no detectado: no se pueden leer las propiedades de undefined

Estoy tratando de leer el valor de una etiqueta de entrada de tipo "buscar". Creo que debería usar $(this) en el siguiente ejemplo, pero no funciona:

 $(document).ready(() => { $("#search-field").on("input", (event) => { var out = $(this).val(); $(".test-label").text(out); }) })

Sin embargo, si uso $(event.currentTarget) funciona:

 $(document).ready(() => { $("#search-field").on("input", (event) => { var out = $(event.currentTarget).val(); $(".test-label").text(out) }) })

De acuerdo con la diferencia entre este y el objetivo del evento , debería funcionar.

¿Me estoy perdiendo de algo?

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!