I want to write the whole file in pure java script, but this part:
Code:
$('#myUL li')
When I try:
Code:
document.querySelectorAll('#myUL li').addEventListener("click", function() {
   // code to be executed
});
The console.log report:
Code:
Uncaught TypeError: Object #<NodeList> has no method 'addEventListener'
Thank you