[jQuery] Re: Basic Selector expression only work on Chrome, no other browsers

2009-04-15 Thread Karl Swedberg
Maybe try a filter function: var filters = $('div').filter(function() { return this.style.filter; }).length; alert(filters); It won't work in FF because filter is IE-proprietary. Has nothing to do with jQuery. To test, try this: var divs = document.getElementsByTagName('div');

[jQuery] Re: Basic Selector expression only work on Chrome, no other browsers

2009-04-15 Thread Tao
Hi Karl, Yes, I understand filter is IE-proprietary. That's why I try to use jquery selector to get the filter div list instead of div.style.filter. But it seems jquery selector cannot handle this well. As the html is created by M$ mshtml which has some filter styles in the page. What I try to