Getting Selected name of a dropdown using Javascript

hikayeadam

New Member
I have created one dropdown box \[code\]<select name="select" id="selectId"><option id="" value="http://stackoverflow.com/questions/3839174/calendar_Second_Calendar_1285942672.xml">Second Calendar</option><option id="" value="http://stackoverflow.com/questions/3839174/calendar_First_Calendar_1285932160.xml">First Calendar</option></select>\[/code\]I can get the selected drop down box value using \[code\]document.getElementById("selectId").value\[/code\]How i can get the name where user is seeing i mean (Second Calendar or First Calendar)
 
Back
Top