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-min-length

Syntax

if-min-length: (string|element) integer;

This conditional action will return true if the specified string has a length that is greater than or equal to the specified integer.

string = The string you want to check. This can contain any valid Active CSS variable, such as an attribute or an ajax response variable. No spaces are allowed.

element =  Selector reference to an element. If it is an input tag, it will use it's value. If textarea, it will use it's content. Any other type of selector it will compare its innerText.

integer = The minimum length of the string allowed for the conditional to pass.

For example, this will return true if the element #myInput has string content that has a minimum of 3 characters.

@conditional minInput {
if-min-length: #myInput 3;
}

When used on an event selector with no string/element in parentheses, it will default to checking "self". Eg. #myInput:if-min-length(3): ...

if-min-length