Why this jQuery code doesn't work? Thank you! It doesn't change the src attribute, why? I belive that I have done a correct code but It still doesn't work.
<html>
<head>
<title>Primo script</title>
</head>
<body>
<script src="jquery-1.12.1.js"></script>
<script>
$('#due').click(function() {
$('#due').attr('src', 'immagini/apple.jpg');
});
</script>
<h1>Primo script</h1>
<p>Ci sarà una bella immagine; se ci si clicca sopra l'immagine cambierà.</p>
<img src="immagini/ant.jpg" id="due" title="una formica">
<hr>
</body>