Sunday, September 6, 2009

How to select dropdownlist selecteditemtext using Javascript?

function select_dropdownlist_text()
{
var drp = document.getElementById('Dropdownlist1');
alert(drp.options[drp.selectedIndex].text);
}

No comments:

 
Feedback Form