I have a lot of checkboxes that needs to execute the same javascript function when checked/unchecked. As parameter I enclose the control's server ID. My hope is to get the actual checkbox using this ID. The problem is that I need to find the client ID, but as expected I can't use my javascript variable myControlsServerID inside asp code blocks to get this ID. This is where I get stuck:
function show(myControlsServerID) {
var checkbox = document.getElementById('<%= myControlsServerID.ClientID %>')
//more omitted code
}
How can I get the clicked checkbox?