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 / apeksha

<HTML>
<BODY>

<SCRIPT>
function getSelect(s)
{
return s.options[s.selectedIndex].value
}
</SCRIPT>


<SELECT NAME="list" OnChange="location=getSelect(this)">
<OPTION value="#"> Choose a search engine
<OPTION value="http://www.yahoo.com"> Yahoo
<OPTION value="http://www.lycos.com"> Lycos
<OPTION value="http://www.excite.com"> Excite
</SELECT>


</BODY>
</HTML>

Is This Answer Correct ?    102 Yes 58 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is escape data in php?

981


What are some new features introduced in php7?

8864


Explain Constant in Class?

1083


What is substr in php?

1086


Is server side a session?

982


How do I run php?

1025


Which is better get or post method?

957


What does type casting mean in php? Explain with an example?

1020


What language is similar to php?

1044


Write a program in php to print a table of a number?

982


What is the use of $_server["php_self"] variable?

1059


What is the difference between unset and unlink?

1016


Explain the difference between array_merge() and array_combine()?

1046


How to get ip address of clients machine?

1036


How long is csrf token?

972