There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

if-inner-text

Syntax

if-inner-text: selector "string";

Same thing as the if-inner-html conditional, except it checks the innerText property.

When used on an event selector with no selector in parentheses, it will default to checking "self". Eg. #myDiv:if-inner-text("a string"): ...

Reference:

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText