<ul> <li>1. yaz</li> <li>2. yaz</li> <li>3. yaz</li> <li>4. yaz</li> </ul>
<ul id="my_list"> <li><button>1. yaz</button></li> <li>Etc</li> </ul> <script> $( "#my_list > li > button" ).click(function() { $_this = $(this); //do something.... like... $_this.addClass("hot-pink"); }); </script>
<script> var tagsLi = document.getElementByTagNameNS('li'); for (const li of tagsLi) { li.onclick = function() { enter your code after li element has been clicked } } </script>
Loading Info...