My goal is to execute a function when users click on the li elements in the snippet below without relying solely on onclick. For instance, clicking on the first li element (with a value of 1) should trigger a function where the value "1" is passed as an argument.
..
<a href="#" class="path-nav-close"></a>
<ul id='uItem'>
<li><a href="#" class="launch" >1</a></li>
<li><a href="#" class="launch" onclick="alert('2')">2</a></li>
...