If I have this code:
You need to figure out what the selectedIndex is, then getAttribute from that options[] Array.
jsFiddle DEMO
Don't use inline javascript in your HTML. You want to separate your business logic from your UI. Create a javascript event handlers instead to handle this. (jQuery / Angular / etc)