DEMO here i corrected your json and checkout the demo
var studentData={
"student1": [
{
"term1": [
{
"LifeSkills": [
{
"obtained": "17",
"grade": "A",
"gp": "5"
}
]
},
{
"Work": [
{
"obtained": "13",
"grade": "A",
"gp": "5"
}
]
}
],
"term2": [
{
"LifeSkills": [
{
"obtained": "17",
"grade": "A",
"gp": "5"
}
]
},
{
"Work": [
{
"obtained": "13",
"grade": "A",
"gp": "5"
}
]
}
]
}
]
}
var marks=[];
marks.push(studentData);
console.log(marks);
it successfully pushed into marks array
var marks=[];
var studentData={"student1":[{
"term1":[
{"LifeSkills":[{"obtained":"17","grade":"A","gp":"5"}]},
{"Work":[{"obtained":"13","grade":"A","gp":"5"}]}
],
"term2":[
{"LifeSkills":[{"obtained":"17","grade":"A","gp":"5"}]},
{"Work":[{"obtained":"13","grade":"A","gp":"5"}]}
]
}]};
marks.push(studentData);
console.log(marks);
Here you go.
Can I center the content of div with center-block?? The following example does not work: <div class="form-group"> <div class="center-block"> <input id="...
Can I center the content of div with center-block?? The following example does not work: <div class="form-group"> <div class="center-block"> <input id="...
I have the following array: var data= [{ "Id": 1, "Name": "NameOne"} { "Id": 2, "Name": "NameTwo"} { "Id": 2, "Name": "NameTwo"}] { "Id": 3, "Name": "NameThree"}] ...
I have the following array: var data= [{ "Id": 1, "Name": "NameOne"} { "Id": 2, "Name": "NameTwo"} { "Id": 2, "Name": "NameTwo"}] { "Id": 3, "Name": "NameThree"}] ...
I just discovered a weird issue with Angular 1.2.1, demonstrated in this fiddle (tested in both IE, FF, and Chrome): if I create a very simple templated directive, it fails to work as <my-element /&...
I just discovered a weird issue with Angular 1.2.1, demonstrated in this fiddle (tested in both IE, FF, and Chrome): if I create a very simple templated directive, it fails to work as <my-element /&...
I have 2 long URLs that point to the same page, http://preview.tbwabox.co.nz/_v005/index.html#buying-a-car http://preview.tbwabox.co.nz/_v005/index.html#buying-a-house and I would like to check if ...
I have 2 long URLs that point to the same page, http://preview.tbwabox.co.nz/_v005/index.html#buying-a-car http://preview.tbwabox.co.nz/_v005/index.html#buying-a-house and I would like to check if ...