473,395 Members | 1,504 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,395 software developers and data experts.

Cascading radiobutton group/drop down list

Hello,

I am working on real estate web site.
The search module requires the following client-side functionality:
1) a radio button group to select sales <ORrental
2) based on the above selection, a dropdown list should display the
applicable price ranges.

The functionality is identical to the code found @
http://webdeveloper.earthweb.com/rep...ps_simple.html

The only difference being that the first dropdown should be replaced by a
radio button group.

Having very limited knowledge in JavasScript, I have been unable ta adapt
the code.
Thanks in advance for your support,

Michel
Apr 28 '07 #1
1 3695
On Apr 28, 10:15 pm, "Michel Couche" <Cont...@michelcouche.xxnetxx>
wrote:
Hello,

I am working on real estate web site.
The search module requires the following client-side functionality:
1) a radio button group to select sales <ORrental
2) based on the above selection, a dropdown list should display the
applicable price ranges.

The functionality is identical to the code found @http://webdeveloper.earthweb.com/repository/javascripts/2002/07/91311...

The only difference being that the first dropdown should be replaced by a
radio button group.

Having very limited knowledge in JavasScript, I have been unable ta adapt
the code.
Thanks in advance for your support,

Michel
code it all in html as normal, then set the drop downs styles using
css to display:none.
..hidden{visibility:hidden;display:none;}
..visible{visibility:visible;}
use an onclick event on the radio group to set the className of the
dropdowns so that whichever radio you hit, the corresponding select
appears by itself.
make sure that it is clear which radio button goes with which dropdown
when everything is visible

You can use js to store all the data and then populate a select. but
its not accessible, whereas coding it all using html, so thats its
clear without the javascript means your page will work if js is on or
off.

Apr 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Scott McChesney | last post by:
I'm writing a Windows application for a client, and I've run into a problem I don't know how to solve. The UI is relatively simple - a listbox on the left (in a panel), and a third-party tab...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
2
by: malhar | last post by:
hi friends....i want a help for cascading my drop down lists....
0
by: john_mcmahon | last post by:
I'm having issues populating a second drop down menu that's dependent upon a selection in the first menu. When I select an option from the first menu, the second menu remains disabled, i.e. unable...
3
kcdoell
by: kcdoell | last post by:
Hello: I have been struggling with building a cascading list on a form that I created. My problem is that I am getting a "Datatype Mismatch in criteria expression" error that I can not seem to...
7
kcdoell
by: kcdoell | last post by:
I have three tables: One for the Division location: tblDivision DivisionID = Autonumber DivisionName = Text One for the Working Region: tblWrkRegion
1
kcdoell
by: kcdoell | last post by:
Good Morning: I have a form where I am trying to create cascading combo boxes. I have done this before but I am getting the following error that is throwing me off: Procedure declaration...
3
kcdoell
by: kcdoell | last post by:
I have 5 cascading combo boxes on a form. Below is a sample of my vb in the first combo box: Private Sub CboDivision_AfterUpdate() 'When the Division is selected, the appropriate Segment...
18
by: LosLobo | last post by:
Greetings all. I know that cascading lists are a common problem and in truth I my initial post here was to request help with my own, but then I figured out the right code. That being said, I have a...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.