Invalid loop insert optgroup option?

    for (var i = 0; i < objJson.length; iPP) {
        if (dtString.indexOf(getHeadString(objJson[i].name)) == -1) {
            dtString += getHeadString(objJson[i].name) + ",";
            optgroup = $("<optgroup>");
            optgroup.attr("label", "");

            for (var j = 0; j < objJson.length; jPP) {
                if (dtString.indexOf(getHeadString(objJson[j].name)) != -1) {
                    option = $("<option></option>");
                    option.text("");
                    option.val("");
                    optgroup.append(option);
                }
            }

            $("-sharplabour1").append(optgroup);
        } 
    }
    
     for 
    

var optgroup, option;

    optgroup = $("<optgroup>");
    optgroup.attr("label", "")
    option = $("<option></option>");
    option.text("1");
    option.val(1);

    optgroup.append(option);

   $("-sharplabour1").append(optgroup);
   
   
Mar.05,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34c49-2ac84.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34c49-2ac84.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?