Message from JavaScript discussions

May 2019

— What are you looking for?


Want to use "document.getElementsByClassName[xxx].[0].innerHTML" to get a number, it reads 8,130.023 but it can't recognize the comma, so it will only return 8!!!!!

— The length is only 1

— It would not recognize any number after comma

— 😢

— "recognize"?

— It would not return any number after comma

— It will only return 8

— First of all, there are many problems with this line

— getElementsByClassName is a function, so you would use (xxx), not [xxx]

— Yes

— Used ()