jquery - Object doesn't support property or method 'is' -
i have jquery script gives matched items working in firefox not in ie, in ie gives me **
error: object doesn't support property or method 'is'
** here using jquery 1.9.1
jo.filter(function (i, v) { var $t = $(this).val(); (var d = 0; d < data.length; ++d) { if ($t.is(":contains('" + data[d] + "')")) { return true; } } return false; })
by moving from
var $t = $(this).val()
to
var $t = $(this);
things work. mentioned in comments, $(this).val() not jquery object. it's string
since it's getting value
attribute dom element.
also, tried fiddle in firefox , looking @ console, error trigger. doesn't kill page or show kind of alert, functionality of filter not going work.
Comments
Post a Comment