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);