You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
478 B

/**
* Switch between SOAP and REST
*/
function switchSoapRest() {
switch ($(this).val()) {
case 'SOAP':
$('#ws_operation').show();
$('#ws_postbody').hide();
break;
case 'REST':
$('#ws_operation').hide();
$('#ws_postbody').show();
break;
}
}
var wsType = $('select[name=wstype]');
wsType.on('change', switchSoapRest);
wsType.ready(function() {
wsType.trigger('change');
});