currently working with jquery object
the object contains data like
data[0]={CustUserID: 31, FirstName: "System12", LastName: "Administrator", CustUserName: "SysAdmin"}
this object contains n number of records,and we get the length using data.length
and also each object each record contains different type of keys and n number of keys with value
so now i am trying to get each key name and value name from each record and need to show on page.
on html view:
CustUserID=31
FirstName=System12
LastName=Administrator
CustUserName=SysAdmin
the code i wrote for this is
var data="";
for(var i=0;i<data.length;i++)
{
data= data+"</br>CustUserID="+data[i].CustUserID+
"</br>FirstName="+data[i].FirstName+
"</br>LastName="+data[i].LastName+
"</br>CustUserName="+data[i].CustUserName;
}
$("#DivData").html(data);
but i stucked when data keys are dynamically changing according to user requirment so at that i am facing problem to get data, so i need to get key names and data should be looped dynamically.
please help me...
thank you guys..