Select the inner element by class name, instead of by index, so that it continues working correctly if additional elements have been injected before it