Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: cgi popup_menu when radio is selected

by bradcathey (Prior)
on Feb 05, 2008 at 03:32 UTC ( [id://666188]=note: print w/replies, xml ) Need Help??


in reply to cgi popup_menu when radio is selected

I'd do this on the client side with a little onclick to show the select tag. I do this a lot and it has nothing to do with Perl.

<input type="radio" value="1" name="foobar" /> <input type="radio" value="2" name="foobar" onclick="document.getEleme +ntById('menu').style.visibility='visible'" /> <select name="somechoice" id="menu" style="visibility: hidden"> etc.

You could use display: none and display: block, the difference being display will collapse the space on the page where the menu would go.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^2: cgi popup_menu when radio is selected
by vit (Friar) on Feb 05, 2008 at 18:52 UTC
    Thanks a lot, it works fine. The only thing is that when I check another radio button select with this id="menue" should disapear.
    If you could give me a hint how to do this I would appreciate.

      Come on! You're not thinking...

      <input type="radio" value="1" name="foobar" onclick="document.getEleme +ntById('menu').style.visibility='hidden'" />
      —Brad
      "The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found