jQuery selector not working in IE

Posted by CurlyFro on Stack Overflow See other posts from Stack Overflow or by CurlyFro
Published on 2010-03-26T19:51:06Z Indexed on 2010/03/26 19:53 UTC
Read the original article Hit count: 297

Filed under:
|

this method should return a unique array of text from rows with a specific td class.

works in ffs and chrome but not in ie8 or safari. can you spot the problem?

function getUniqueIds()
{
     var tblLnks = new Array();

     $('td.tblLnk').each(function()
     {
        tblLnks.push($(this).text().trim());
     });

     return tblLnks.unique();
}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery