The problem of dynamic Generation of html by jsp

    var fpsxArrayStr="${PPList}";
    var fpsxArray =  JSON.parse(fpsxArrayStr);//json
    var fppoolArrayStr="${share}";
    var shareArray =  JSON.parse(fppoolArrayStr);//json
    var i;
    var j;      
    var html="<table >";
    for(i=0;i<fpsxArray.length;iPP){
        for(j=0;j<shareArray.length;jPP){
            html+="<tr>"+
              "<td>"+
                 "<input name="checkboxfpsx"+fpsxArray[i].PPID+"" id="checkboxfpsx"+fpsxArray[i].PPID+"" type="checkbox"/> <span class="lbl">"+fpsxArray[i].PROJECT+
                 "<select  name="pool"+shareArray[j].SID+"" id="pool"+shareArray[J].SID+"">"+
                 "<option value=""+shareArray[j].SID+"">"+shareArray[j].TYPE+"</option>"                     
                 "</select>"+
                 "<input name=""+1+"" id=""+1+"" type="text"/>"+
              "</td>"                     
            html+="</tr>"
        }
    }
    html+="</table>";
    $("-sharptest").append(html);


This is the effect of < H2 >. < / H2 >

clipboard.png

,checkbox,,,

clipboard.png

Mar.20,2021

has the problem been solved

Menu