<script type="text/javascript"> function countrychange() { var cou = document.getElementById('country').value; alert(cou); } </script>
<select id="country" name="D1" önchange="countrychange()"> <option value="IN">India</option> <option value="US">USA</option> </select>
var name=document.getElementById('country')[document.getElementById('country').nodeType].innerHTML
var sel = document.getElementById('country'); var index = sel.selectedIndex; var text = sel.options(index).text; alert('the text is :'+ text + '\nthe value is : '+sel.value);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)