I can’t change the image with jquery: whats going on??
<!DOCTYPE HTML>
<HTML>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script text="text/javascript">
$('#caccia').attr('src', '2.png');
</script>
<img id="caccia" src="1.jpg" />
</HTML>
It’s because you have not tell your script to wait until the DOM is ready, just write that instead.
Which is the same as (it can be easier to understand this way).
Plus, it’s better to have you JavaScript before thz
</body>http://developer.yahoo.com/performance/rules.html#js_bottom