Conheça o Autor
Palavras-Chavefunction Selecionar(elemento,cordefundo)
{
var Inputs = elemento.getElementsByTagName("input");
var cor = elemento.style.backgroundColor; //manter a cor default do elemento
for(var i = 0; i < Inputs.length; ++i)
{
if(Inputs[i].type == 'checkbox')
{
Inputs[i].checked = !Inputs[i].checked;
elemento.style.backgroundColor = cordefundo;
elemento.onclick = function()
{
Selecionar(this,cor);
};
}
}
}
protected void gvSelecao_PreRender(object sender, EventArgs e){
GridView gv = (GridView)sender;
foreach (GridViewRow row in gv.Rows)
row.Attributes.Add("onclick", "Selecionar(this,'#FFFF00');");
}| Arquivo | Tipo | Tamanho | |
|---|---|---|---|
| Arquivo ZIP | 53,8 Kb |
| Nota | Comentário | Membro |
|---|---|---|
10
|
2/1/2009
Legal
demais essa video aula |
comibrain |
Comente