File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript question" Watch "javascript question" New topic

javascript question

c ccc

Joined: Dec 23, 2005
Posts: 2

is there a way to dynamically allocate the size for the selection box? for example, when the user select a radio box with value 10, the selection box will have 10 options; when the user select a radio box with value 20, the selection box will have 20 options.

many thanks in advance and happy holidays.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Hello "c ccc"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here, and yours does not conform to it. You can change it right here. Thanks for your prompt attention to this matter.

Enjoy your time here.

As to your question, yes, that's possible, although I can't give the syntax off the top of my head. The JavaScript gurus hang out (unsurprisingly) in the HTML/JavaScript forum, not in this forum, which is about web services. Someone will move this thread there, so that you might get a quicker response.
I agree. Here's the link:
subject: javascript question
It's not a secret anymore!