I am trying to check if a td innertext contains parentheses (). The reason is I display negative numbers as (1000) and I need to convert them to -1000 to do math. I\'ve trie
I think you'll have to use a filter function like:
$('#fscaTotals td *').filter(function(i, el) { return !!$(el).text().match(/\(/); });
Edit: I think this is a bug in jQuery's :contains().
:contains()