This topic is locked

Conditional radio button

8/21/2013 2:33:54 PM
PHPRunner General questions
T
Tempus_Erus author

Hi,
I have a radio button field where I need to use the condition to display a row.
var ctrlShowrow= Runner.getControl(pageid, 'Radio_button_field');

ctrlShowrow.on('change', function(e){

if (this.getValue() =='A'){

$("select[id^='value_rowtoshow]").parentsUntil('tbody').Show();

}else{

$("select[id^='value_rowtoshow']").parentsUntil('tbody').hide();

}

});
If the user selects A - row is show else row is hidden.
Appreciate any help...........
Thanks in advance

C
cgphp 8/21/2013

What is the question?