You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, getRawValue would return in the previous example 111.
But I do need the mask, but I need only the ones that are to the left of my last character, that's why in my example I get only one /. The number of characters retrieved does matter for my case...
the getValue would return a string with a length of 10. (even if I paste only a 111)
the getRawValue would return a string with a length of 3.
My example returns a string with a length of 4.
Basically, I manually input each of the characters in the instance (had to use input instead of paste, if 1 single character is wrong in the paste method, it just dont paste anything);
After that I get the end property from the selection object, and slice the getValue value from 0 to the end number.
Still I'd like to know if there's a better approach :)
Hey, the title might seem a little confusing, but an example can make it very clear. Let's say I have the following pattern:
If I use the
getValue
method, I get the string'11/1_/____'
.Is there a way to get only the characters from the last 1 to the left? it would return something like this:
11/1
thanks.
The text was updated successfully, but these errors were encountered: