We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Can someone tell what the /\D/g.'' mean in newValue.replace(/\D/g,'')

wbrown1
Mega Contributor

Can someone tell what the  /\D/g.'' mean in  newValue.replace(/\D/g,'') and what other option there are or where the documentation could be found. I am trying to use this to force the client to enter a whole number and no decimals.

1 ACCEPTED SOLUTION
1 REPLY 1

Michael Fry1
Kilo Patron