Expand/ uncollapse trigger

I am adding children and want to trigger the section to expand when the child is added. refresh_field is working, but it’s still collapsed over the refreshed field.
I was able to remove the class with some honestly hacky jQuery:

if($("a:contains(Deductions or Loss)").parent().hasClass("collapsed") == true){
	console.log("collapse triggered");
	var deductions = $("a:contains(Deductions or Loss)").parent();
	if(deductions.hasClass("collapsed")){
	  $(deductions).removeClass("collapsed");
	}

Is there a way to trigger the collapse eval?