I am a total noob to javascript and need some direction.
I am trying to do the following:
Create 3 text boxes:
- User enters a string in the first text box.
- User enters string to be replaced (part of the first string) in the second text box.
- User enters new string to insert in third text box.
Button – calls a function to perform the replacement and displays the results in all uppercase.
I am using document.querySelector("myID").value;
to grab the value entered, but i am not sure if i should be using replace()
for this. Or if the variable needs to be converted to something else. (very confused)
If anyone could point me in the right direction it would be much appreciated.