:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Scripts >> PHP


 PHP interview questions  PHP Interview Questions (659)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (175)
 VB Script interview questions  VB Script Interview Questions (343)
 JSP interview questions  JSP Interview Questions (100)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
display selected value in dropdown list through javascript
without page refresh
 Question Submitted By :: PHP
I also faced this Question!!     Answer Posted By  
# 1
for this purpose we have to use ajax via we call another php
file which make the string of dropdown list
Is This Answer Correct ?    390 Yes 103 No
# 2
you don't need to use AJAX for this. Just a simple


<script type="text/javascript">
function showSelected(val){
('selectedResult').innerHTML = "The selected number is - "
+ val;

<div id='selectedResult'></div>

<select name='test' onChange='showSelected(this.value)'>
<option value='1'>one</option>
<option value='2'>two</option>

Is This Answer Correct ?    353 Yes 108 No
# 3

<script type="text/javascript">
var show
function showSelected()

<form name="me">
<select name='test' onChange='showSelected()'>
<option value='1'>one</option>
<option value='2'>two</option>
Is This Answer Correct ?    165 Yes 97 No
# 4

function getSelect(s)
return s.options[s.selectedIndex].value

<SELECT NAME="list" OnChange="location=getSelect(this)">
<OPTION value="#"> Choose a search engine
<OPTION value=""> Yahoo
<OPTION value=""> Lycos
<OPTION value=""> Excite

Is This Answer Correct ?    96 Yes 55 No
# 5
one dropdown value are pass from another dropdown value with
Is This Answer Correct ?    76 Yes 58 No

Other PHP Interview Questions
  Question Asked @ Answers
Is there a way to encrypt text from php?   5
when we submit any string in single inverted comma('abc') with get or post method,we will get exact string with single inverted comma('abc')by using $_REQUEST[]. But it is giving (\'abc\'). so anybody please help me to remove that slash,therefore i will get exact string...   2
What is meant by urlencode and urldocode?   2
What is the difference between $message and $$message? eGrove 12
i am a php programmer can i be a java programmer?   3
what is the url rewriting?how to rewrite the url? give any example   1
To run php script on a local machine we need to install Apache http server and php. Then only scripts are run in the browsers. but when these things are not loaded on a local machine and a php script is brought by the browser still the browser displays the page. how?   2
What are the advantages and disadvantages of Cascading Style Sheets?   1
What are the difference between abstract class and interface?   4
hello.. i am 4th year student. i am confused that i should learning php or java. I have some knowledge of java and developed project in java, but i want to develop my career in php. So plz suggest me , i should go with php or java.   5
how to insert logout time when browser close   1
how can i get USA time using php...   1
For more PHP Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::