Search.../

updateValidityIndication( )

Updates the element's visual validity indication based on its current validity state.

Description

Many elements have a visual cue that indicates whether they are valid or not. For example, a text input that usually has a black outline might have a red outline when its value is not valid.

Syntax

function updateValidityIndication(): void

updateValidityIndication Parameters

This function does not take any parameters.

Returns

This function does not return anything.

Return Type:

void
Mixed in from:$w.ValidatableMixin

Was this helpful?

Update an element's validity indicator

Code Example

Copy Code
1$w("#myElement").updateValidityIndication();