Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

how to modify the listbox values on selecting values of another listbox in the same form?

by anbutechie (Sexton)
on Apr 25, 2009 at 12:41 UTC ( #760001=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://760001]
Approved by AnomalousMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2023-12-07 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (32 votes). Check out past polls.

    Notices?