title: Call OnCheckedChanged event from javascript
body: <p>when user change the checkbox, I want first show my custom confirm dialog message. If user select yes, I want fire the code behing event processado_CheckedChanged(object sender, EventArgs e)</p>
  
  <p>I tried something like:</p>
  
  <p><code>&lt;asp:CheckBox ID="processado" runat="server" OnCheckedChanged="javascript:confirmingChange();" AutoPostBack="true" /&gt;
  </code></p>
  
  <p>And my js:</p>
  
  <pre><code>function confirmingChange() {
       $.confirm({
          'title': 'Confirm',
          'message': 'Are you sure?',
          'buttons': {
              'Yes': {
                 'action': function () {
                      __doPostBack(document.getElementById('processado'), '');
                 }
              },
              'No': {
                  'action': function () {
                       return false;
                  }
              }
          }
      });
      return false;
  }
  </code></pre>
  
  <p>How can I fire my codebehind event using javascript?
  Thanks.</p>