<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
alert($("#name").attr("value"));
});
</script>
</head>
<body>
<input type="text" value="42" id="name" name="name">
</body>
</html>