In this case, we want to hide the Wire information when the user chooses SEPA and of course visa-versa.

In this case, each section has multiple fields that pertain to the SEPA and Wire Transfer information.

So in this case, we updated each field in those respsective groups, to have a custom class name of sepa and wire respectively.

This allowed us to simplify the javascript code to a few lines vs. writing in all the field names.

$("#content_field_25798_46146 input").on("change", function() {
if ($(this).val() == 'SEPA') {
$(".gridList-item_sepa").show();
$(".gridList-item_wire").hide();
} else {
$(".gridList-item_wire").show();
$(".gridList-item_sepa").hide();
}
});
Enter the field you're going to trigger the switching of information by getting the ID from the <ul> tag as we will then target the included inputs.
$("#content_field_25798_46146 input").on("change", function() {
