Hidden Radio Button

Status
Not open for further replies.

smoosh

New member
Nov 15, 2007
146
1
0
42
NYC
Hey guys,

Not sure if this's already been answered somewhere else or there is no way of doing it. Either way... here it goes.

Is there a way to hide Yes/No Radio button? - am not talking about rendering the whole thing with CSS visibility tag set to "hidden", just setting the radio button color to match site BG.

I eagerly await your roasting of my nonexistent tech knowledge.

Thanks,
 


Hmm... I don't know if there's a way to conceal a radio button that'd render correctly in any browser that you could throw at it.

What's the application? I mean, of course the obvious choice is to use an <input type="hidden" ... > tag, and then switch the variable with Javascript. Is this something you want to not appear until you need it? You can also use AJAX to call the radio button on a separate form page.

More info might be helpful here, otherwise just try CSS'ing the radio button to hell, working on background color and/or border colors. You could also enable an image input as well instead of the form element "radio", so that you can switch between image="blank.gif", "checked.gif", "unchecked.gif".
 
Is there a reason why it HAS to be a radio button? Wouldn't a hidden field post the same info?
 
well... the whole point of the exercise is that it is there residing on the page. Its also active, and yes - im afraid it has to be a radio button, i just dont want it to be seen. sorta like when you match a boatload of content font color to your bg... :D
 
I think people are getting at ... it sounds like there is probably a better way to accomplish what you're really after. If you explain the problem a little more ... someone might say "hey a hidden field will do the trick" (or some other solution) ... but all we know now is that you want to make a radio set match the page BG color but no one can figure out why you would want do do that. :)

Why do you need it to be hidden? You might be able to use CSS positioning ... you might be able to use the CSS visible attribute (why do you think you can't?), you might be able to hide its parent div (but that's not really any different than using CSS visible...). So what is the purpose of hiding the radio button?
 
Status
Not open for further replies.