:: 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 (660)
 ASP interview questions  ASP Interview Questions (252)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (176)
 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 ?    394 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 ?    357 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 ?    167 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 ?    98 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
what do you mean by php.ini file ????????? Samsung 2
What are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10)) ? HCL 7
Hi, My Name is Ajay Jha. What My Question is I am Percuing in Bca. It's My 5th Semester. I Want To Make My Carrear as a web designer that's Why i wants to do Php, Is it right Desision for Me ?   1
how to upload a file in php.write a syntex for that Net-Solution 1
What is the use of friend function? Wipro 7
How do you set the browser timeout?   3
just explain MYSql ISAM and InnoDB functions. and what is the diffrent between both. and which is the better in both.   2
when you will get the message/error "headers already sent"?   5
how to upload 100mb file using .htaccess..   2
how many types of inheritance is there in php? name there?   10
what mode to use when creating dirs with mkdir?   1
What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?   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.   ::