Nasrul Hazim Bin Mohamad

jQuery: Remove Specific Element from an Array

Sep
10
function removeArrayElement(list,value) {
	var position = $.inArray(value, list);
	if ( position == -1 ) list.splice(position, 1);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

five × 4 =