0
I have seen several examples of how to mark and unmark all, but I have not seen how to mark a specific, see:
<asp:CheckBoxList ID="ChkAcoesListarGrupo" runat="server" RepeatDirection="Horizontal" Width="100%" >
<asp:ListItem Value="1">Novo</asp:ListItem>
<asp:ListItem Value="2">Atualizar</asp:ListItem>
<asp:ListItem Value="3">Excluir</asp:ListItem>
<asp:ListItem Value="4">Visualizar</asp:ListItem>
<asp:ListItem Value="5">Pesquisar</asp:ListItem>
</asp:CheckBoxList>
How do I leave the item Visualizar
marked with jquery ?
It would be something like that:
$('#<%= ddlPerfil.ClientID %>').change(function (e) {
e.preventDefault();
//Aqui eu marcaria o item **Visualizar**
});
Because you just don’t put in the checkbox that you want to leave marked attribute
checked
?– hugocsl
@hugocsl like that
$("[id*=chkAcoesListarGrupo] input:checkbox").prop('checked', false);
i mark and/or deselect all of the list but how do I assignchecked
solely for the itemVisualizar
?– hard123