Contents

 
Home
PHPRunner 6.2 manual
Prev Page Next Page
 
 

Show dropdown list of US states if US was selected in country list

 

To show dropdown list of US states if US was selected in the country list or hide it otherwise, use the following code in Javascript OnLoad event.

yellowbulbNote: Change the values listed in red to match your specific needs.

var ctrlCountry = Runner.getControl(pageid, 'country');

var ctrlState = Runner.getControl(pageid, 'state');

 

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

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

ctrlState.show();

}else{

ctrlState.hide();

}

});

See also

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)