change the value of dropdown using Jquery
<pre><code>&lt;select name="vehicle_make" onchange="test1(this.value)" style="width: 130px; float:left;" id="vehicle_make" class="home_input"&gt;
    &lt;option value=""&gt;Choose Make&lt;/option&gt;
    &lt;option value="2063"&gt;Acura&lt;/option&gt;
    &lt;option value="2064"&gt;Honda&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>i have a dropdown. i have read the href attribute of the link and assigned it as the value to dropdown. but i want to take only the number from the link and assign it as value to dropdown how can i do it.</p>

<pre><code>&lt;select name="vehicle_make" onchange="test1(this.value)" style="width: 130px; float:left;" id="vehicle_make" class="home_input"&gt;
    &lt;option value=""&gt;Choose Make&lt;/option&gt;
    &lt;option value="http://store.teknotik.com/category-s/2063.htm"&gt;Acura&lt;/option&gt;
    &lt;option value="http://store.teknotik.com/category-s/2064.htm"&gt;Honda&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>i have used following jquery to get the link as value</p>

<pre><code>$("#data a").each(function(index) {
        if ($(this).attr("class") == "subcategory_link") {


            //document.getElementsById("year").innerHTML="&lt;option value="+$(this).attr("href")+"&gt;test&lt;/option&gt;";
            lnk[cnt] = $(this).attr("href");
            cnt = cnt + 1;
            //alert($(this).attr("href"));

        }
    });
</code></pre>

<p>but i want to have the dropdown value as:</p>

<pre><code>&lt;select name="vehicle_make" onchange="test1(this.value)" style="width: 130px; float:left;" id="vehicle_make" class="home_input"&gt;
    &lt;option value=""&gt;Choose Make&lt;/option&gt;
    &lt;option value="2063"&gt;Acura&lt;/option&gt;
    &lt;option value="2064"&gt;Honda&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>i want to have only the number before .htm in above dropdownho send as value. Please advise.</p>
