Copy link to clipboard
Copied
I need to change a character at a time, with buttons, in a text, for example:
abcdefg
With button 1) change only the letter "a" but not the other letters;
With button 2) change only the letter "b" but not the other letters;
etc.
I have seen several methods that are not in my case.
I would like some advice to know, except obviously the script of buttons, what is the easiest method to solve this problem.
Thanks.
You can look into using the String.replace() method. Another option is to just use String.split(remove_letter).join(replacement);
Copy link to clipboard
Copied
You can look into using the String.replace() method. Another option is to just use String.split(remove_letter).join(replacement);
Copy link to clipboard
Copied
Thank you Ned, you helped me find the solution!
Copy link to clipboard
Copied
You're welcome Jhon
Find more inspiration, events, and resources on the new Adobe Community
Explore Now