Aleksandar wrote:
Quote:
Nun zum Problem:
Darf der User eine Zahl zwischen z.B. 1 und 12 eingben funzt das
Script
bei 1,10,12,13, etc. und überträgt die Zahl an eine andere Seite.
Bei 2,3,4,5,6,7,8,9 erhalte ich
alert("Die eingegebene Menge ist in diesem Feld nicht möglich!"); |
You should rather use news:de.comp.lang.javascript if you want to ask
questions in german language.
For a solution of your problem see the FAQL of dcljs:
http://dcljs.de/faq/antwort.php?Antw...en_vergleichen
Short summary: Comparision operators do compare lexically if one operand
is of type 'string'. Form field values are of type 'string'.
Xpost & F'up2 dcljs.
ciao, dhgm