I work with jquery and try to change attribute "value=Hello" to "value=admin" in input tag. but I don't understand why I can't do this. When I run my example I don't have the result in Google Chrome debugger.
!DOCTYPE html>
<html>
<head>
<script src="jquery-1.10.2.js"></script>
<script>
$(document).ready(function () {
$("input[type=text]").val("admin");
alert( $("input[type=text]").val());
});
</script>
</head>
<body>
<span>Login</span><input type="text" value="Hello" /><br />
<span>Password</span><input type="password" />
</body>
</html>