JSFiddle - React, Tailwind, and code Playground

HTML

<ol>
  <li>
    <a href="#">Some list item</a>
  </li>
</ol>

<button>Add another list item</button>

<script>
  $(document).ready(function(){
    $('button').click(function(){
      $('ol').append('<li><a href="#">Dynamic list item</a></li>');
    });
  });
</script>

JavaScript

$('ol').on('click', 'a', function(){
    alert( $(this).text() );
    return false;
});