Hello,
Can someone help me.
'number' is a string and not a number!
Why does the following not work:
<script type='text/javascript'>
function calculate(rij) {
var number = "0";
if(number!="0") {
for(var i=0; i<description.length; i++) {
if(description[i] == descr) {
var arrrow=i;
}
}
)
}
</script>
I also tried:
if(number>"0") {
But because number is a string, that did not help much (you have to
try sometimes a few things).
The above source-code is part of a PHP-script (I replace the \" in "),
but that should not matter.
When the PHP-code has been started, I see an error in my IE at the
left bottom of the window (Error on page / Done). When I run the above
script only, I do not get an error. But when I add a line
alert("test"); before </script>, I do not see the alert, that alerts
me that there is an error.
I hope you have enough information to see what i did wrong.
Thank you in advance!