This is my code:
// user control
<asp:CheckBox ID="chbGenerali" runat="server" />
// js
var prova = $find("chbGenerali");
console.log(prova.checked);
but I get TypeError: prova is null
. It should be a sort of:
document.getElementById("<%=chbGenerali.ClientID%>")
isn't it?
Do I need to enable somethings