I’m modifying a standard webcontrol in a system i’m working on which has some string values I don’t have access to. I want to know if theres a way to append additional words to a string, anywhere in it using jquery.
Example:
Current string: You are currently accessing these settings as Username.
What I want: You are currently accessing these settings and system controls as Username
and system controls being the additional words I’d like to append to the string. How is this possible through jQuery?
You don’t need jQuery for that, simple JavaScript will suffice:
What you are using here is the .replace() method.