Help with taking values in an array, appending a string in front and behind

Help with taking values in an array, appending a string in front and behind

Hey guys, I am some what a beginner in jquery/javascript. I am familiar with how it works, but its been a minute since I have worked with it and recently i've been tasked with something that I think jquery/html would be best for.

So I have a list of 500 refund numbers, i put them into a text box, click a button, and they currently go into an array, I know this works as when I alert the array, I see my values.

What I need some guidance with is how can I take the numbers in this array and make it populate a textbox that looks like the below.

  1. send "REFUNDNUMBER1<f1>"   #This is our refund number
    send "5<f1>"      # This LINE will come after every single refund number

So as you can see, i need to append : send "  to the front of the refund number, and <f1>"  to the end of it and then add send "5<f1>"  to the line beneath it.


Essentially I am trying to generate a script for someone and if this is the wrong place for help I apologize sincerely, I just need some solid direction so that I can understand what I need to do and how to do it. I have very minimal experience with for loops and arrays unfortunately. and javascript for that matter.