How to get Element Children Attributes with JQuery From Passed in Element
<p>I have a function that takes an element as a parameter and from there I need to get attribute info from one of the child elements. </p>

<pre><code>function getTablesForSchema(element) {
    alert(element); 
    var schemaName = $(element).children('ul:first').attr('id');    
    alert(schemaName);
...
</code></pre>

<p>The alert displays [object HTMLLIElement] so I know the element parameter is correct. The 'li' element has a couple embeded 'ul' elements inside of it and I need to get the first one and it's 'id' attribute.</p>

<p>If I do an alert on the element like so the alert fails. I'm at a loss here. Any ideas?</p>

<pre><code>var tempElement = $(element);
alert(tempElement);
</code></pre>
