473,396 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display content dynamically on selecting an item from a dropdown menu

I want to display a content dynamically when the user selects a item from a dropdown menu
Jul 18 '07 #1
4 2306
gits
5,390 Expert Mod 4TB
hi ...

welcome at TSDN ... please post some code you have done so far ... so that we may help you with a particular problem ...

kind regards
Jul 18 '07 #2
<select name="destination" onchange="surfto(this.form)">
<option selected="selected" value="">Choose Destination</option>
<option value="">Page 1</option>
<option value="">Page 2</option>
<option value="">Page 3</option>
</select>
please suggest me the code to display some content dynamically when the user selects an item from a dropdown menu
Jul 18 '07 #3
acoder
16,027 Expert Mod 8TB
Changed the thread title to something more meaningful.

Please read Use a good thread title
Jul 18 '07 #4
gits
5,390 Expert Mod 4TB
hi ...

have a look at the following example:

[HTML]
<html>
<head>
<script>
function surfto(selection) {
alert(selection.value);
}
</script>
</head>
<body>
<form name="my_form">
<select name="destination" onchange="surfto(this);">
<option selected="selected" value="none">
Choose Destination</option>
<option value="1">Page 1</option>
<option value="2">Page 2</option>
<option value="3">Page 3</option>
</select>
</form>
</body>
</html>
[/HTML]

you should use values to identify the selected one later on ... the func 'surfto' alerts them at the moment ...

tell me exactly what you want to do ... what content do you mean? may be you first try something for yourself ... and post back when you have more specific questions?

kind regards
Jul 18 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I've been using QuickForm for a few months now and I am now given a new challenge: I've got a search form with a dozen of dropdown menus, the first dropdown menu being "Brand". If you...
7
by: Tim T | last post by:
Hi, I have the need to use dynamically loaded user controls in a webform page. I have the controls loading dynamically, and that part works fine. this is the code used in a webform to dynamically...
1
by: murphy | last post by:
Hello, I've run into a potentially wrong design decision on a project and want to find out if my intended change is the best fix. I have a page that displays historical time-series data using...
9
by: dennist685 | last post by:
Walkthrough: Creating a Web Page to Display Access Database Data I've started the above walkthrough. However, near the beginning it gives the following instructions To set permissions in the...
7
by: Steve_Black | last post by:
Hello, I'm toying with the idea of loading a MenuStrip (VB.Net 2005) dynamically based on who is logged into my system. Every user has different security settings and I want to customize the...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
4
by: jsd219 | last post by:
I am a newbie for sure; problem, I have a page that has dynamically generated sections at the top, when I click on one of the sections I would like the list of categories associated with the...
4
by: Panna | last post by:
Hey there I am using phpMyAdmin and MySQL to develop a dbase application. I have a dropdown menu on one of the pages which gets populated automatically with data from a table in the database....
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.