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

197
Views
How to filter (by clicking in a value of a select ) the li elements of an ul that's being created by a javascrip function fom data coming from api

I've tried multiple ways, but they just work on li elements that are in the html file and not the ones being created by a javascript function.

the code is here: https://github.com/inesmm666/forum

The function addAUser in forum.js defines how the li element is going to look like and adds it to the ul with the id("lista-projetos-global") in the forum.html file. The api rest requests are in the api.js file.

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

0

Since new elements are added later after the page has loaded, they also miss the appropriate event listeners you setup for the one already rendered. To solve this, you can take advantage of the event propagation by listening for the event in a common ancestor and this technique is called Event Delegation.

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!