I have a jquery array.In here i want to remove WORLD NEWS item. My array comes like this,
[Object { NewsType="WORLD NEWS", NoOfHours=2},
Object { NewsType="LOCAL NEWS", NoOfHours=1},
Object { NewsType="SPORTS NEWS", NoOfHours=2}]
i have tried it like this,
var remItem ="WORLD" ;
NewsArray.splice($.inArray(remItem, NewsArray), 1);
but in here i hardcoded news,it's not good because sometimes it comes as a world or global or any other similar name.
How do i solve this problem?