how to store the returned function value in 'x' ??? i need this because, i wanna use a hover function on images and respectives image's src will varies.
<script>
var x;
$(document).ready(function(){$(":image").attr("src");
alert(x);
});
</script>
</head>
<body>
<form action="">
Name: <input type="text" name="user"><br>
Password: <input type="password" name="password"><br>
Compatible: <input type="image" src="compatible_ie.gif" width="31" height="30">
</form>