Trying to replace all instances of # in a string with a variable. It's not working but not retuning any error either.
answer_form = '<textarea name="answer_#" rows="5"></textarea>'+
'<input type="file" name="img_#" />';
question_num = 5;
answer_form.replace(/#/g, question_num);
The hashes remain.
Not sure what I'm missing?