title: How to verify if a check box is checked?
body: <p>I am currently trying to make my checkbox show a popup for browser notifications if it is checked. If the user unchecked it the browser notification will popup to declined vice-versa.</p>
  
  <p>here is a snippet of what I am trying right now but it is not working. </p>
  
  <pre><code>if(checkbox_id == (queue_notification)) {
          if(checkbox_state) {
            $('input#user_hop_queue_notification').is(':checked') == '1'
               if(Notification.requestPermissionre !== "granted"){
                Notification.requestPermission(function(status) {
                  console.log('Notification permission status:', status);
                });
              }
            }
          else {
            $('input#user_hop_queue_notification').is(':checked')== ('0');
            if(Notification.requestPermission !== "denied"){
                Notification.requestPermission(function(status) {
                  console.log('Notification permission status:', status);
                });
              }
            }
        }
  </code></pre>