alfinete
Power Member
Código:
function visible(val,buttonid,divid)
{
var valor;
alert(val+" , "+ buttonid);
if (val == "+")
valor = "-";
if (val == "-")
valor = "+";
if(document.getElementById(buttonid).value == "+" )
{
document.getElementById(buttonid).value = valor;
document.getElementById(buttonid).title = "Fechar";
document.getElementById('<%= dvmodule.ClientID %>').style.display="block";
}
else
{
document.getElementById(buttonid).value = valor;
document.getElementById(buttonid).title = "Abrir";
document.getElementById('<%= '+divid.clientid+' %>').style.display="none";
}
}
Código:
<input type="button" id="btnplusmodule" runat="server" title="Abrir" class="SACButton" value="+" onclick="visible(this.value,'ctl00_ContentPlaceHolder1_WucDisciplinesINS1_btnplusmodule',dvmodule);"/>
agradecia que me disessem como posso por o oarametro divid em
Código:
document.getElementById('<%= dvmodule.ClientID %>').style.display="block";
e como o posso rederenciar no botão html