item = (val == 1)? "item":"items";
So I fired up firefox,tested a few conditions and everything worked. Just to be on the safe side I loaded up IE7.
To my suprise IE7 was throwing up an error. I thought it was because IE was having difficulting testing a text input value as a number. But after a number of tests and alerts everything was fine. So what was the issue?