[RESOLVED] document.getElementById in Master Page
Hi all,
I'm using following script in child Page
<script type="text/javascript" language="javascript">
function ShowTip(mDiv) {
if (mDiv.length < 1) { return; }
var dd = document.getElementById(mDiv);
dd.style.display = "block";
dd.visible=true
}
</script>
It works on normal pages but doesn't works on child Pages of Master Page.
Any Help???
Re: document.getElementById in Master Page
you need to use the ClientID property...
Re: document.getElementById in Master Page
Hey,
Can you show an example of where you are calling ShowTip?
Gary
Re: document.getElementById in Master Page
Quote:
Originally Posted by
gep13
Hey,
Can you show an example of where you are calling ShowTip?
Gary
Thanx 4 reply. But I Solved it now.
Re: [RESOLVED] document.getElementById in Master Page
Hello,
For the benefit of the rest of the community, you might want to think about posting the solution that you came up with, in case someone else is having a similar problem.
Gary