Getting error while retrieveing value from name
<p>I am beginner with jquery, I am getting error while getting input from name in jquery..
My code is...
HTML</p>

<pre><code>&lt;input type="text" name="pcpfname" id="pcpfname" class="text" /&gt;
&lt;input type="submit" name="pcpsubmit" id="pcpsubmit" value="Submit" /&gt;
</code></pre>

<p>Jquery</p>

<pre><code>$('#pcpsubmit').click(function(){
var pcpfname = $('input[name=pcpfname]');
alert (pcpfname);
});
</code></pre>

<p>My alert message is</p>

<pre><code>[object Object]
</code></pre>
