for(var i=0; i< numTotalPerguntasDig; i++){
strInterface +=
"<ul>"+
"<li class=\"col-md-2 \">"+
" <button type=\"button\" class=\"btn btn-danger btn-info-bloco form-control\">"+
" <span class=\"glyphicon glyphicon-plus-sign\" aria-hidden=\"true\"></span>" +
" <span class=\"texto-btn\">/span>"+
" </button>"+
"</li>"+*/
"<li class=\"col-md-2 \">"+"<input type='text' class='info-1 form-control' style='width: 100%' value='"+arraySeq[i]+"'/>"+"</li>"+
"<li class=\"col-md-6 \">"+"<input type='text' class='info-2 form-control' placeholder='Digite'/>"+"</li>"+
"<li class=\"col-md-2 \">"+
" <select class='info-3 form-control'>"+
" <option value='1'>1</option>"+
" </select>"+
"</li>"+
"<li class=\"col-md-2\">"+
"<button class='btnadd btn btn-danger btn-sm form-control' value='x'><span class='glyphicon glyphicon-remove' aria-hidden='true'></span> </button>"+
"</li>"+
"</ul>";
menu.append(strInterface);
}
append
or createElement
?
What is the best way or the most visual way to understand the code in future maintenance?