title: Unable to get the value of text field in jquery
body: <p>This is simple even though i don't know why i don't get it to work.
  I just need the value of the text field. Here is the code. <a href="http://jsfiddle.net/VL8hr/" rel="nofollow">http://jsfiddle.net/VL8hr/</a></p>
  
  <pre><code>$(document).ready(function() {
  
     var firstname = $('.firstname').val();
     alert(firstname);
  
  }); 
  </code></pre>