for (i = 0; i <= 1000; i++) { $("#ddlType").val(data.d[i].TypeID); SetTypeDetails(); $("#lblTypeValue").text(data.d[i].TypeName); $("#lblcodeValue").text(data.d[i].Code); $("#cbTypeActive").attr("checked", data.d[i].active); }
$(data).each(function (index, element) { $("#ddlType").val(element.TypeID); SetTypeDetails(); $("#lblTypeValue").text(element.TypeName); $("#lblcodeValue").text(element.Code); $("#cbTypeActive").attr("checked", element.active); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)