Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 362 Bytes

File metadata and controls

5 lines (5 loc) · 362 Bytes

Decimal-Thousands-separator

JS code that parses the input string for illegal characters and adds the separators using RegEx. The example demonstrates the hot parsing of inputing numeric value. The number with decimal and thousands separators is on display in the visible <input> value. The proper actual double number is stored in <data-value> attribute.