jquery find method
<p>I have a function called using an anchor inside a form, and I need to get the values of the inputs inside the same form to perform certain actions. Problem is, the result is always <code>undefined</code>.</p>

<p>Here's the code :</p>

<pre><code>$('#create_alert').live('click', function(e) {
    var form = $(this).parent().get(0);

    var id = $(form).find('input[name="id"]').val();

    alert(id);
});
</code></pre>

<p>.. and the context :</p>

<pre><code>&lt;form name="create_alert"&gt;
&lt;input type="hidden" name="id" value="1" /&gt;
&lt;a href="#" type="text" id="create_alert" class="search-submit"&gt;CRIAR ALERTA&lt;/a&gt;
&lt;/form&gt;
</code></pre>

<p>Thoughts?</p>
