Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

display selected value in dropdown list through javascript
without page refresh

Answer Posted / dhir

<html>
<body>

<script type="text/javascript">
var show
function showSelected()
{
show
=document.me.test.options[document.me.test.selectedIndex].value;

document.write(show);
}
</script>
<form name="me">
<select name='test' onChange='showSelected()'>
<option value='1'>one</option>
<option value='2'>two</option>
</select>
</form>
</body>
</html>

Is This Answer Correct ?    169 Yes 102 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of ajax in php?

1035


Tell me what is the use of the function htmlentities?

992


Explain mail function in PHP with syntax?

1050


What is the scope of a variable defined in a function?

1121


What is the difference between associative array and indexed array?

1163


Does browser understand php?

982


What type of language is php?

1037


What is the difference between $name and $$name?

1053


Explain how is it possible to cast types in php?

1022


What is the difference between explode() and split() functions?

1134


What is the difference between php and java?

1033


How can we check the value of a given variable is a number?

1130


What does the unlink() function mean?

1165


Tell me what does $_env means?

999


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

1086