jQuery Array Help
jQuery Array Help
Hi, I have been using jQuery for a while now, and i find it truly
amazing. I ran into a problem while using arrays, The code i have
works in IE6 AND FIREFOX but not on IE7. Any help would be
appreciated. I am looking for a way to find out if a text exists in an
array.
if($("input.statuschk:checked").length > 0)
{
var statusArr = new Array()
$("input.statuschk:checked").each(function(){
statusArr.push($(this).val());
});
$("#defectsTable1 td.status").each(function(){
if(statusArr.indexOf($(this).find("select").val()) == -1)
$(this).hide();
else
$(this).show();
});
}
This basically gives me an error in IE7. on the line statusArr.indexOf