Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

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;
Avatar of Big Monty
Big MontyFlag of United States of America imageWeb Ninja at large

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

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers