I want to add <option>
tag using for loop inside jquery .after() function.
I have the following code:
$("#myid").after("<!--more tags here-->"+
"<select class='form-control' name='dropdownmenu'>"+
"for (i=0; i < 4 ; i++){"+
"<option>i</option>}"+
"</select>"+
"<!--more tags here-->")
But that doesn't work, all I get is 1 <option>
tag with the letter i inside