Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

additional question regarding validating numeric fields

Avatar

Former Community Member
This is part of the code i obtained in order to check validation.



//var reg = /^\d+$/; // checks whether input contains ONLY digits

var reg = /\d+/; // checks whether input contains digits AND letters



However, i found that both options checks only wether input contains letters.

What is the function that checks if input contains only digits ?
0 Replies