Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

JS help with Hide/Unhide a list

$
0
0

Gentlemen,

 

Have a pair of Radio Buttons named "RetORIndiv". Button Values are "Ret" and "Indiv".

ONLY when the "Indiv" button is chosen, do I want another sub-list of Buttons to be available, Named RetailTypes, with various button Values.

IF the "Ret" button is chosen, then the sub-list is hidden, or unavailable.

 

I have this working on another form, but the list that contains the JS is a bunch of fields, NOT a radio button set.

This is what I have working on a NON radio button list, hiding or not, non-radio fields:

 

// Determine if Check box is marked then use value to show or hide other Fields
var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden;

// Get each field in the shipping address info and set to show/hide value
this.getField("ICON").display = nHide;
this.getField("Percent0.5").display = nHide;
this.getField("Dollars0.5").display = nHide;

 

Were I a JS geek , this would be a snap, but I'm not, so I'm looking for help from someone who is.

Any help is appreciated.

Thanks in advance.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>