var test = "";
for (var i = 0; i < controlResponse.classifications.length; i++) {
test+='<div role="option" aria-checked="false" class="select item" style="pointer-events: all;"><span class="text">' + controlResponse.classifications[i].name + ' </span></div>';
}
for (var i = 0; i < controlResponse.fileList.length; i++) {
var htmlCode='<div class="row"> '+
' <div class= "ten wide computer sixteen wide mobile ten wide tablet column"> '+
' <h5 class="ui header"> '+
' <i aria-hidden="true" class="file word outline large icon fa-fw"></i> '+
' <div class="content">outlook_testler.docx</div> '+
' </h5> '+
' </div > <div class="six wide computer sixteen wide mobile six wide tablet column"> '+
' <div role="listbox" aria-expanded="false" class="ui selection dropdown" tabindex="0" style="float: right;"> '+
' <div aria-atomic="true" aria-live="polite" role="alert" class="divider default text">Classification</div><i aria-hidden="true" class="dropdown icon"></i> '+
' <div class="menu transition classifications"> ' +
+test+
' </div> ' +
' </div> '+
' </div> '+
' </div>';
$("#classificationModalList").append(htmlCode);
}
When I add html code to the variable, it shows as NaN.
I add select item html codes to test variable then I added test variable inside htmlCode variable
then I added test variable inside htmlCode variable
