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');
document.getElementById( 'ajax-wrapper' ).style.visibility = 'initial'; $("#ajax-wrapper").show();