I click on "My link1", i have the alert "I clicked on" -> OK  

I click on button "Add line", it adds my link 2 -> OK  

I click on "My link2" just added, nothing happens. -> KO  

Any help is welcome.

This is my code

```
<ul style="list-style-type: none;padding-left: 0px;" id="listitems">
  <li ><a href="#" id="mylink">my link 1</a></li>
</ul>
<button onclick="addrecepitem();" id="btnrecepajouter">Add line</button>

<script>
function addrecepitem(){
document.getElementById('listitems').innerHTML += '<li id="mylink">my link 2</li>';
}

$('#mylink').click(function(){
alert('I clicked on ');
}

</script>

```