A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/api/input/input_gettext_method/ below:

Website Navigation


JavaScript Form - getText Input Method

getText()

returns the text value of the input with the applied mask

getText(): string;

Returns:

A string with the text with the applied mask

Example

const input = form.getItem("input");
input.setValue(1000.01);

input.getValue(); // 1000.01 for the input type number
input.getValue(); // "1000.01" for the input type string

input.getText(); // "1,000.01" with the applied numberMask/patternMask

The method is used with the numberMask and patternMask properties of the Input control. It allows getting the value with the applied mask.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4