http://qs321.pair.com?node_id=760001

anbutechie has asked for the wisdom of the Perl Monks concerning the following question:

hi,

I m using CGI module. I created 2 list boxes with 2 values in first and 4 values in second, I m showing all 6 values (2+4) on load. On selecting first value of first list box, first two values of sencond list box should alone be listed and on selecting both values in first list box all the 4 values should be displayed in 2 nd list box. How is it possible

Regards,
Anbarasu
  • Comment on how to modify the listbox values on selecting values of another listbox in the same form?

Replies are listed 'Best First'.
Re: how to modify the listbox values on selecting values of another listbox in the same form?
by almut (Canon) on Apr 25, 2009 at 14:37 UTC

    You'll have to use JavaScript and modify the second listbox (accessing it via the DOM) when an onChange event occurs in the first.

Re: how to modify the listbox values on selecting values of another listbox in the same form?
by Anonymous Monk on Apr 25, 2009 at 13:39 UTC
    That seems impossible