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

Do you know what is the function func_num_args() used for?

1008


Is php is dying?

937


Explain Type juggling?

971


What are the design patterns in php?

977


Tell me can the value of a constant change during the script's execution?

1259


Which is incorrect with respect to separating php code and html?

1013


Tell me what is the default session time in php?

979


What does the unset() function means?

1115


Is python similar to php?

1017


What is sticky form in php?

894


What are the common uses of php?

1092


Can php variables have numbers?

994


What backslash character will match whitespace?

1054


Tell me what is the definition of a session?

1035


What is the difference between == and === in php?

1008