How can I select for an input and a textarea?
<p>I have the following code:</p>

<pre><code>        $('input.update-grid', $form)
            .each(function () {
                var id = this.id.replace('modal', '');
                $('#input' + id).val(this.value)
            })
</code></pre>

<p>I would like this to also select for textareas that have a class of upgrade-grid.  Is there a way that I can do this without making another selector and code?</p>

<p>Also if I want to set the text in a textarea is that just set in the same way as an input with .val()?</p>
