JavaScript Tutorial/jQuery/Img
Get Image alt message
<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("img").attr({
src: "http://wbex.ru/style/logo.png",
title: "wbex.ru",
alt: "Logo"
});
$("div").text($("img").attr("alt"));
});
</script>
</head>
<body>
<body>
<img />
<div></div>
</body>
</html>