Skip to content

Instantly share code, notes, and snippets.

@jakes2255
Last active November 1, 2020 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakes2255/835f85efec1e87f25a3fbe6c4c56f243 to your computer and use it in GitHub Desktop.
Save jakes2255/835f85efec1e87f25a3fbe6c4c56f243 to your computer and use it in GitHub Desktop.
onMobNumberChangeRegEx: function (oEvent) {
var input = oEvent.getSource();
var mobNum = input.getValue();
mobNum = mobNum.replace(/[^\d]/g, '');
input.setValue(mobNum);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment