Точно?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function() {
$('#as').focus(function() {
alert(this.value)
});
});
</script>
</head>
<body>
<input id="as" value="1" />
<input id="as" value="2" />
</body>
</html>
|