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

The :starts-with selector filters nodes whose contents start with the string provided in the first argument. For case-insensitive searching, use :istarts-with instead.

Usage

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

document.querySelector('div:istarts-with("the")');
Clone this wiki locally