You are close, just need to use td instead of tr in your selector. Here's my version to append ".00" at the end of cell's text (assuming all numbers are not already in fixed format of course).
Up vote 1 down vote favorite share g+ share fb share tw.
Ok I have a jQuery function already to perform the task I need but is there a way to loop through the cells of a specific with the id="generated_rows" text 1 text 2 text 3 text 4 text 5 Need this text 1.00 text 2.00 text 3.00 text 4.00 text 5.00 FUNCTION BELOW NOW WORKS! , Thanks // Check for whole numbers and append .00 $('#generated_rows td. Row_class').
Each(function() { var x = Number($(this).text()). ToFixed(2); $(this). Text(x); }); jquery html selector link|improve this question edited Jul 9 '09 at 19:23 asked Jul 9 '09 at 18:39Phill Pafford15.7k1650131 98% accept rate.
You are close, just need to use td instead of tr in your selector. Here's my version to append ".00" at the end of cell's text (assuming all numbers are not already in fixed format of course) $("#generated_rows > td. Row_class").
Each(function() { var $this = $(this); var splitText = $this.text(). Split(' '); splitText1 = Number(splitText1). ToFixed(2); $this.
Text(splitText. Join(' ')); }).
Just what I needed, thanks – Phill Pafford Jul 9 '09 at 19:24.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.