Skip to content
Robbie Chipka edited this page Dec 23, 2015 · 1 revision

The :ends-with selector filters nodes whose contents end with the string provided in the first argument. For case-insensitive searching, use :iends-with instead.

Usage

document.querySelector('div:ends-with("The")');

document.querySelector('div:iends-with("the")');

Clone this wiki locally