My code is not working and I can’t explaing why… it gives me no error please help me!
Here it is the code:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<h1>La mia lista</h1>
<ol id="lista">
</ol>
<script type="text/javascript" >
var frutta = ['mele', 'banane', 'kiwi'];
var lista = $('lista');
$.each(frutta,function(index,value){
console.log(index, value);
$("<li/>").text(value).appendTo(lista);
})
</script>
</body>
</html>