html - How to get the selected value of dropdownlist inside a table cell using JavaScript? -


this question has answer here:

i have html element this:

<td>     <select>         <option value="polygon 47">polygon 47</option>         <option value="polygon 49">polygon 49</option>     </select> </td> 

how can access selected value javascript?

i solved using getelementsbytagname.

        var e = cell.getelementsbytagname("select")[0];         var myvalue = e.options[e.selectedindex].value); 

Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -