Concatenating Variable with File Name

Need to add a variable to a filename to display an image file related to the variable's number while simultaneously replacing the img src in the HTML code.



where mapNum is the variable

1) is my coding correct at all?
2) how would I make the filename work with the variable?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!