How to get the second match with QuerySelector?

Use document.querySelectorAll

document.querySelectorAll('.titanic')[1]

Leave a Comment