Changes

Jump to: navigation, search

JavaScript Validation

209 bytes added, 14:52, 9 July 2021
To limit the amount of characters that can be entered into a field
==To limit the amount of characters that can be entered into a field==
 
@value@.length<''n''
@value@.length<35
 
==To validate the length of a number entered into a field==
@value@.toString().length==n
 
'''Where'''
 
''n'' is any number
 
'''Example'''
 
To see if the length of a number is 10
 
@value@.toString().length==10
==To have a custom field only accept values in a range==
2
edits

Navigation menu