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;         }) 

http://jsfiddle.net/l9xdq/

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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -