raviaaaa 0 Newbie Poster

Hi
How to disply element id value to view pls give me with example

if(a.indexOf("UpdateDiv***") > -1){
            var arr = a.split("***");
            document.all.lblDivAccess.innerHTML = "&nbsp&nbsp[ " + arr[1] +" Divisions(s) ]";
            document.all.lblDivAccess.style.display = "inline";
            document.all.lblDivAccess.style.color = "red";
            document.all.txhSelDiv.value = arr[2];

            break;
        }

in this line iam getting totally added 'number'(in + arr[1]) but i want to display the values to view do i need to change the code pls help me on this.

document.all.lblDivAccess.innerHTML = "&nbsp&nbsp[ " + arr[1] +" Divisions(s) ]";
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.