Remove value from option select
<p>Have any chance to remove exp. value="1" option select?</p>

<p>Exp. that is my option select:</p>

<pre><code>&lt;select name="animals"&gt;
 &lt;option value="0"&gt;dog&lt;/option&gt;
 &lt;option value="1"&gt;cat&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>How to remove value="0" and value="1"?</p>

<p>I try this, that is my form:</p>

<pre><code>&lt;form method="post" action="/user/register/" onsubmit="test(this)"&gt;
&lt;select name="animals" id="animals"&gt;
 &lt;option value="0"&gt;dog&lt;/option&gt;
 &lt;option value="1"&gt;cat&lt;/option&gt;
&lt;/select&gt;
&lt;/form&gt;
</code></pre>

<p>That is my test function:</p>

<pre><code>function test(form) {
    form["#animals"].removeAttr("value");
}
</code></pre>

<p>But have error message:</p>

<pre><code>form['#animals'] is undefined
</code></pre>
