There's only 2, and I have no control over wrapping them in anything at this
particular point in time. There is a label, and I'll have to hide that as
well, just doing one thing at a time ... I only need to hide one, because
the other will be checked.
Here's the full code if that helps ...
<FORM NAME="EntryForm_1">
<input type="radio" name="CLASSIFIED" id="field_CLASSIFIED_2_1" value="5"
class="noclass" > value 5
<input type="radio" name="CLASSIFIED" id="field_CLASSIFIED_2_2" value="4"
class="noclass" > value 4
</FORM>
<SCRIPT LANGUAGE="javascript">
var urlString = document.location.href;
function delineateRight(str)
{
point = str.lastIndexOf("=");
return(str.substring(point+1,str.length));
}
if (delineateRight(urlString) == 4){
document.EntryForm_1.CLASSIFIED[1].checked=true;
document.EntryForm_1.CLASSIFIED[0].style.visiblity = "hidden";
}
if (delineateRight(urlString) == 5){
document.EntryForm_1.CLASSIFIED[0].checked=true;
document.EntryForm_1.CLASSIFIED[1].style.visiblity = "hidden";
}
</SCRIPT>
On Fri, Jun 27, 2008 at 1:16 PM, Jerry Johnson <[EMAIL PROTECTED]> wrote:
> or display='none';
>
> But think about a radio button for a second. typically, they come in
> mulitples. are you hiding ALL of them, or just the one? And how are you
> displaying the VALUE next to the radio button? a label, just text next to
> it? Do you need to hide that as well? If so, wrap the needed on/off
> elements
> in a div, and turn that div on/off.
>
>
>
> On Fri, Jun 27, 2008 at 1:11 PM, Duane <[EMAIL PROTECTED]> wrote:
>
> > Try ......style.visiblity = "hidden";
> >
> > -----Original Message-----
> > From: Erika L. Walker [mailto:[EMAIL PROTECTED]
> > Sent: Friday, June 27, 2008 2:07 PM
> > To: CF-Community
> > Subject: JavaScript help ...
> >
> > I want to hide a radio button based on the value of a url variable ...
> >
> > the following works brilliantly to check off my radio button ...
> >
> > if (delineateRight(urlString) == 4){
> > document.EntryForm_1.CLASSIFIED[1].checked=true;
> > }
> >
> > inside there I want to hide the button ...
> >
> > I found something like this:
> >
> > document.EntryForm_1.CLASSIFIED[0].style("display")="hide";
> >
> > but it doesnt work ... is there another way?
> >
> >
> >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:263000
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5