Baskar Baskar - 1 month ago 9
jQuery Question

Remove Array Value By index in jquery

Array:

var arr = {'abc','def','ghi'};


I want to remove above array value 'def' by using index.

Answer

Try this, it will work for sure.

ArrayName.splice(indexValueOfArray,1);

1 //removes 1 item starting at indexValueOfArray.