jQuery find pattern and get the element ID
<p>I need to use the jQuery find built-in function and get the ID of the "found" form.</p>

<pre><code>// workingForm is a valid obj and the jQuery selector is form[id$="frmAlert-"]
var workingForm = J('#tabs').find('form[id$="frmAlert-"]');

var idWorkingForm = J(workingForm).attr('id');
alert(idWorkingForm);
var idWorkingForm = workingForm.attr('id');
alert(idWorkingForm);
</code></pre>

<p>Why is the idWorkingForm always undefined?</p>

<p>Thanks!</p>
