How to get the second match with QuerySelector? April 27, 2023 by Tarik Use document.querySelectorAll document.querySelectorAll('.titanic')[1]