html get checkbox value by id

try this:

 <input id="SelectedCB" type="checkbox" style = "z-index: 99999 !important; margin-top: 0px;" onchange="return getCustomer(this);" />  

   function getCustomer(ctrl) {  
       if ($('#SelectedCB').is(':checked'))  
       {  
         alert('checked');  
       }  
       else {  
         alert('Unchecked');  
       }  
       return false;  
     }  


Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report