Hi,
I am using the following script to find if there are any accordions in the JSP.
var i;
var varElement=document.getElementById('accordion')
alert("first alert-- "+varElement);
for (i in varElement){
alert("second alert--- "+varElement(i));
}
I am getting Null in the first alert and I am not able to get the second alert.
Could you please help me to resolve this.
My requirement is to check if there are any accordions, if so get the IDs and values. How can this be achieved.
Thanks,
nash