var obj=document.getElementById("select"); var index=obj.selectedIndex; var text=obj.options[index].getAttribute("lrc"); alert(text);