This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 42958
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
jQuery in Action, 3rd edition