0

Hiii.

Iam using alert box to display the total payment modes.
But in Alert it displaying only 62 out of 110.

my Code::

var hidpaym = document.frmrechnung.hidpayt.value;
            var str = hidpaym.split(",")
            var st = "" ;
            alert("str.length::"+str.length)
                for (i=0;i < str.length ; i++)
                {
                    if (st == "")
                    {

                        st = str[i];                        

                    }
                    else
                    {
                        st =st +" \n "+str[i];  // \n to create new line in alert                       
                    }


                }
                alert("testing::"+str.length)

            alert("Please enter integer values as follows,\r\n"+st);
            document.frmrechnung.txtSearch.focus();

Please

Edited by Nick Evan: Fixed formatting

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Troy III
0

try alerting "i" at the end of the loop and tell us what's the value of it
if it is 110 as opposed to 62 items displayed your loop is skipping - pre counting during if(st=='') conditional.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.