Hello evry body i need a small help from your side explaning in bit detail about the below code which i couldnt able to understand as i was bit new to the this Jquery...
hope i can get a proper response from your side and explanation from scratch about the functionality from the level of wrapper classes which is embedded in this jquery function BindProfileDetails() {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "NewMyprofile.aspx/Populate_details",
dataType: "json",
success: function (data) {
if (data.d) {
$(data.d).each(function (index, item) {
if (index == 0) {
$("#txtfname").val(item.fname);
$('#txtLname ').val(item.lname);
$('#Txtsurname').val(item.surname);
$('#txtmob').val(item.mob);
$('#Txtphone').val(item.phone);
$('#Txtextension').val(item.ext);
$('#ddlyop').val(item.yop);
$('#txtEmailId').val(item.email);
$('#txtaddress ').val(item.address);
$('#txtadd1').val(item.addrclg);
$('#txtqual').val(item.quali);
$('#Txtuniv').val(item.univ);
if (item.sex == "True") {
$("#rdbmale").attr("checked", false);
$("#rdfemale").attr("checked", true);
}
else {
$("#rdbmale").attr("checked", true);
$("#rdfemale").attr("checked", false);
}
if (item.maritialst == "True") {
$("#rdmarry").attr("checked", false);
$("#Rdsingle").attr("checked", true);
}
else {
$("#rdmarry").attr("checked", true);
$("#Rdsingle").attr("checked", false);
}
}
});
}
}
});
}