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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.