I have created a span (id=mySpan) tag in my index.html and than later with the help of getElementById("mySpan").innerHTML I have set the UI List (id:menuList) in my span. Now in my other script on the index page i want to access this menuList object, but when i am doing getElementById("menuList") on index page i am gettting NULL.
Can anyone please help how should i proceeed to solve this problem or what i am doing wrong with it.
my menuList is a seprate HTML which is a header of my page and i am including it with the help of AJAX request in my index.html.
Thanks for replying ...
Iam able to close the problem, i was trying to get the element object even before it was created with the innerHTML so i was getting the null. thanks again.