I am trying to show/hide a button in accordance with the selected radio button.
I have the following editable;
I want to get the value of the selected radio button and use this as the 'display' styling of the button element.
This didn't work out. How can I achieve this functionality?
I have the following editable;
- Code: Select all
<cms:editable name='button_state'
opt_values='Show = block | Hide = none'
type='radio'
/>
I want to get the value of the selected radio button and use this as the 'display' styling of the button element.
- Code: Select all
<button class="infoButton" style="display:<cms:get button_state />">Get Info</cms:editable></button>
This didn't work out. How can I achieve this functionality?