$(document).ready(function(){ Array.prototype.remove_item_from_array = function(){ var result_array = this; for(var i=0;i