Getting all the children of an element that are textareas?
<p>I have a bunch of text areas that are children of a div that has an id. I want to get the text in each of those text areas in an array - so is there a way in jquery to get all the children that are of a certain type(in this case text area) of a certain parent?</p>

<p>I've tried this -</p>

<pre><code>$("#optionGroup_0").children('input[type=text], textarea');
</code></pre>

<p>but that returns an empty array. I think the above method would work if I had the right selector for a text area, but I'm not sure.</p>

<p>Can anyone help? </p>
