#3469261: Use element in each() function (because $(this) is in the wrong scope) to determine opened accordion item.