The function receives the element as a second argument.