title: Add a link dynamically with jquery
body: <p>I'm able to add a link dynamically on my page, but it doesn't seem to be a link recognized by my javascript code :</p>
  
  <p>Javascript code to add the link :</p>
  
  <pre><code> var myLink = $('&lt;a&gt;',{
                      text: 'My Link',
                      id : 'link-1',
                      href: '#'
                  }).appendTo('#book');
  </code></pre>
  
  <p>Javascript code to access the link :</p>
  
  <pre><code>$("#link-1").click(function () {
              alert('link-1 clicked');
          });
  </code></pre>
  
  <p>But when i click the new link created, there's no alert.</p>
  
  <p>Do you have an idea how i can resolve the issue ?</p>
  
  <p>Thanks in advance for your help</p>