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

Explain the differences between get and post methods?

1020


Explain the installation of PHP on UNIX systems?

1164


How can we calculate the similarity between two strings?

1050


Which operator is used to concatenate two strings in PHP?

1081


Explain me what is sql injection?

1132


Do you know how to declare an array in php?

1022


Is empty check in php?

1102


What is the php function that removes the first element of the array and returns it?

1014


What is in php 7?

1085


What is the use of array_count_values() in php?

1075


How to remove duplicate values from array using php?

1080


What the use of var_dump()?

1097


Why do we use csrf token?

996


Could we start a variable with number like $4name?

974


What are global variables in php?

1000