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



display selected value in dropdown list through javascript without page refresh..

Answer / rrajeswari

Try this code


<SCRIPT LANGUAGE="javascript">
<!--
function OnChange(dropdown)
{
var myindex = dropdown.selectedIndex
var SelValue = dropdown.options[myindex].value
var baseURL = <Some value based on SelValue>
top.location.href = baseURL;
return true;
}
//-->

</SCRIPT>
<select name=select1 onchange='OnChange(this.form.select1);'>
<option>Value 1</option>
<option>Value 2</option>
<option>Value 3</option>
</select>

Is This Answer Correct ?    11 Yes 6 No

Post New Answer

More PHP Interview Questions

How to create a session? How to set a value in session? How to remove data from a session?

0 Answers  


Is there an easy way to delete an element from a php array?

0 Answers  


What is cookie in php with example?

0 Answers  


how to insert, update data in database

4 Answers  


How to get the length of string?

0 Answers  


How cookies are trported from browsers to servers?

0 Answers  


How to concatenate two strings together in php?

0 Answers  


Explain php parameterized functions.

0 Answers  


how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.

2 Answers  


why we use @symbol before the variable

5 Answers   HCL, Numark,


What are the different types of php variables?

0 Answers  


Why do we need abstract class in php?

0 Answers  


Categories