Each time you initializing var part=[]
that it will make the array empty . Only the last value will be inside it . So initialize before the .each
method , not inside in it .
1
solved 0 index is undefined or just missing [closed]
Each time you initializing var part=[]
that it will make the array empty . Only the last value will be inside it . So initialize before the .each
method , not inside in it .
1
solved 0 index is undefined or just missing [closed]