troubleshooting Question

isNaN issue on the Table input text

Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla asked on
2 Comments1 Solution203 ViewsLast Modified:
Hi experts, I'm having trouble of determining the number on the table input text. The code below is use to determine numerical number on a table. The code below will not work with the number with comma, example the 1,999.00. If I'm going to write this number, (1,999.00) it will determine as IsNaN value. However, the code will determine as number if i write that as 1999.00 or without comma. Any help please!

function CheckReceiveTableUP()
            var result = "0";
            var tbl = document.getElementById('ReceiveTable');
            var Cell1 = tbl.querySelectorAll('tr td:nth-child(5)');  
            for(var i =0; i < Cell1.length; i++)
              result = Cell1[i].lastChild.value;
              if ( isNaN(result) || (result==0 ))
               $('table tr:nth-child('+z+') #uct').css('border','solid 2px red');
               return false; 
              $('table tr:nth-child('+z+') #uct').css('border','solid 2px green');
              result = 0;
Big Monty
Web Ninja at large

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros