Error javascript can not get value from attribute value
<pre><code>$(document).ready(function(){
    $('.submit').click(function(){
         var value = $('#Name').attr('value');
        alert(value); 
    });  
});
&lt;input type="text" value="10" id="Name"/&gt;Hello world
&lt;input type="submit" class="submit" value="submit"/&gt;
</code></pre>

<blockquote>
  <p>Result is  "Hello World", I want get value is "10", how to fix it ?</p>
</blockquote>
