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

214
Views
Property 'select' does not exist on type 'HTMLSelectElement'. Did you mean 'onselect

I have a jquery code, I want to convert it to pure javascript, but I am getting an error.

How can I solve this issue I tried all the solutions but couldn't fix it.

    let categories = $("#myCategories").find('.products');
    let res = categories.select.data;
    console.log(res)

    let categories2 = document.getElementById("myCategories") as HTMLSelectElement;
    let res2 = categories2.select.data;
    console.log(res2)

screenshoot

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

0

do you want this?

let categories2 = document.getElementById("myCategories");
    let res2 = categories2.value;
    console.log(res2)
<select id="myCategories">
<option value="1" >1</option>
<option value="2" selected>2</option>
</select>

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!