返された関数値を「x」に格納する方法??? 画像にホバー機能を使用したいのですが、それぞれの画像のsrcが異なるため、これが必要です。
<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>