How to pass a select to a jquery function
<p>I have some javascript where I append an option to a select:</p>

<pre><code>var myuniqueddl = $('#myuniqueddl');

$("&lt;option value='0'&gt;--- Select a value ---&lt;/option&gt;").appendTo(myuniqueddl);
</code></pre>

<p>I'm actually trying to do this for another select as well.</p>

<p>I'm wondering to avoid code duplication should I be passing the ddl to a method to do this?</p>

<pre><code>function(someType ddl)
{
   $("&lt;option value='0'&gt;--- Select a value ---&lt;/option&gt;").appendTo(ddl);
}
</code></pre>

<p>Is this a bad idea to be passing a select to a method?</p>

<p>Any better way of doing this?</p>

<p>If this way is ok what type do I pass it in as?</p>
