There is an ajax callback which occurs on change of a field in my drupal 8 form. This populates a wrapper with information from the server. however I also want to excecute a jquery command to make the visibility of another field be visible after that . How can this be done?
I tried this $form['ajax-wrapper']['#attributes'] = array('visibility'=>'initial');
but that doesnt have any effect I need to be able to run this jquery command or this javascript but dont know how to trigger it after the ajax
document.getElementById( 'ajax-wrapper' ).style.visibility = 'initial';
$("#ajax-wrapper").show();