function f1(){
document.getElementById("comment_show").innerHTML
="<form action='c.php' method='post'>a:"+
"<input type='text' name='d1'> <br>"+
"<textarea name='comment' rows='5' cols='100'> </textarea> <br>"+
"b:"+
"<input type='text' name='d2'> <br>"+
"<textarea name='comment' rows='5' cols='100'> </textarea> <br>"+
"c:"+
"<input type='text' name='d3'> <br>"+
"<textarea name='comment' rows='5' cols='100'> </textarea> <br>"+
"<input type='submit' name='s1' value='s1'> <br><br><br><br>"+
"</form>";
}
How to replace d1,d2,d3 with javascript variables in order to make it as a loop?
"mystring" + myVariable + "myOtherString"