jquery :input text how to get
<p>I am trying to get the value of the text in the input fields.  what is the best way to do it in jquery. I tried .text() it doesn't work.</p>

<p>`</p>

<pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;


$(document).ready(function(){

   var t = $(":input").text();

   alert(t);
});



    &lt;/script&gt;


    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form name="f"&gt;
        &lt;input type="text" name="t" value="cake"&gt;tes&lt;/input&gt;

      &lt;/form&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>`</p>

<p>THnks
Coool</p>
