I have an array:
data.Dealer.car[0] data.Dealer.car[1] data.Dealer.car[2]
If I do this:
alert(data.Dealer.car.length); dele
I think you're looking for this:
var arr = [0,1,2,3,4]; alert( arr.splice( 2, 1 ) ); // alerts 2, the element you're removing alert( arr ) // alerts 0,1,3,4 - the remaining elements
here's a MDC reference