Hello everyone I have a checkbox I want to check if its checked or no on client side, before postback happens.
Here is the checkbox:
<asp:CheckBox runat=server CssClass=checkbox Checked=true ID=checkboxRules />
Thanks in advance, Laziale
UPDATE:
The problem is that there is a button on the page too which is triggered by js code, and maybe I can add a line there to check if the checkbox is checked once the button is clicked, otherwise display message for unchecked checkbox:
function enterClick() {
$('#SUBMIT').click();
}
var ishown = false;
$(document).ready(function () {
$('#BUTTON').click(function (e) {
//I want to put the checkbox logic here
Thanks again