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

Why should I store logs in a database rather than a file?

991


What are string functions?

898


How to convert numbers to strings in php?

958


Can you specify the "new line" character in single-quoted strings?

915


How escape single quotes php?

937


What is the sign to start variables in PHP?

1028


Tell me how a constant is defined in a php script?

889


Write a hello world program using variable?

900


What does the scope of variables mean?

900


What does $_env mean?

950


Tell me what is the meaning of a final class and a final method?

1055


What is the use of post in php?

943


How do I stop a php script?

925


What is the difference between javascript and php?

977


Which is not a file-related function in php?

1000