I have a webpage containing a div element. On the page there are links to javascript on div: document.getElementById('divId'). This worked fine until another developer redesigned the page to use the ASP master page.
Now document.getElementById('divId')returns null. It looks like ASP.net adds some characters to the names of elements in content forms when you use the main page. How do I know what a div identifier means when a page loads?
Refresh Let me give you a concrete example to clarify the question: there was a div with an identifier on my page divNotice. After changing my page to use the main page, I see when I print the source on a page that displays the div id is equal ctl00_ContentPlaceHolder1_divNotice. My question is, how should I know what will happen to the div id when the wireframe is done with it?
source
share