javascript get attribution from select
- by Yongwei Xing
Hi all
<select id="test">
<option attribut="1">test 1</option>
<option attribut="2">test 2</option>
<option attribut="3">test 3</option>
<option attribut="4">test 4</option>
<option attribut="5">test 5</option>
</select>
I want to get the selected item's attribute, is there any simple way to do it. The native javascript is fine.
Best Regards,