Jump to content

My characters counter stops at 999

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Alhazred

Alhazred

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
this is my code
function charCounter() {
    var counter = document.getElementById("counter");
    var testo = document.getElementById("testo").value;
    var caratteri = testo.length;
    counter.innerHTML = caratteri;
}

Why does it count only untill 999?


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Without seeing the rest of your page, it's almost impossible to say.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
tamim69

tamim69

    Newbie

  • Members
  • Pip
  • 2 posts
true! you should provide rest of the article!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users