[jQuery] Re: search and replace TD innards

2008-10-02 Thread matchoo
Thanks! Yes, I get confused sometimes on what $(this) really is sometimes. Here's the final code. Works great... PS this is for the TableSorter plugin, which hates commas: $(document).ready(function() { $(table).tablesorter({headers: { 3: { sorter: digit },4: { sorter: digit },5: {

[jQuery] search and replace TD innards

2008-10-01 Thread matchoo
I tried to build a plugin that would replace all numbers in td's of a certain class with numbers formatted with commas. For instance: td/tdtd/td Would be replaced with td1,111/tdtd2,222/td Here's the code... doesn't work for phooey. When I debug in firebug, the variable 'number'