I work on a website, and I have a js problem.
I resume the situation:
- I made a dynamic form with some tabs in.
- I can switch tabs with a js click function
- When I click on the "+" tab , it creates a new tab ( new
<li>
on the<ul>
, and new<div>
on main div ) - But when I want to go on the new tab freshly created, the click function don't answer.
I put a console.log on the first line of the click function, and no log output.
the click function works well with static content, but with fresh content don't work.
How can I make it works with dynamic content ?