P
Paulo
Hi, I have asp.net 2.0 C# panel, named: pnlRejeitar on a master page... but
the generated name will be:
ctl00_Contentplaceholder2_grdContratos_ctl02_pnlRejeitar...
I need to do a js function wich hides/shows it on client, not having the
need to do a postback, and I have used the script below, but doesnt work
(object not defined, etc...), why is it happening?
<script>
function hideIt(id) {
//alert('testing');
layer = document.getElementById(id);
layer.style.visibility = "hidden"
}
hideIt('ctl00_Contentplaceholder2_grdContratos_ctl02_pnlRejeitar');
</script>
Thanks!
the generated name will be:
ctl00_Contentplaceholder2_grdContratos_ctl02_pnlRejeitar...
I need to do a js function wich hides/shows it on client, not having the
need to do a postback, and I have used the script below, but doesnt work
(object not defined, etc...), why is it happening?
<script>
function hideIt(id) {
//alert('testing');
layer = document.getElementById(id);
layer.style.visibility = "hidden"
}
hideIt('ctl00_Contentplaceholder2_grdContratos_ctl02_pnlRejeitar');
</script>
Thanks!