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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -