title: How to update the status of the checklist with ajax call
body: <p>I am trying to update the status of the checklist on click of a button. Can I achieve it by making individual ajax calls pertaining to the checklist item or can I achieve it by making one call and still update it as soon as it is completed.</p>
  
  <p>I have attached the template of how it looks and what I am trying to achieve.</p>
  
  <p>Sorry tried to upload the CSS images files, however not able to do that.</p>
  
  <p>This how it looks</p>
  
  <p><a href="https://i.stack.imgur.com/TkAh5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TkAh5.jpg" alt="enter image description here"></a></p>
  
  <p>Thanks in advance.`</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div {
    width: 30%;
    top: 50%;
    left: 50%;
    border: 1px solid black;
  }
  
  ul {
    list-style: none;
    width: 30%;
  }
  
  li {
    padding-top: 20px;
  }
  
  img {
    float: right;
    display: inline;
    text-align: middle;
    transition: all .2s ease;
  }
  
  .pass {
    background: url('status1.png') no-repeat -2px -47px;
    width: 20px;
    height: 20px;
  }
  
  .fail {
    background: url('status1.png') no-repeat -2px -70px;
    width: 20px;
    height: 20px;
  }
  
  .inprog {
    background: url('status1.png') no-repeat -2px -25px;
    width: 20px;
    height: 20px;
  }
  
  .pend {
    background: url('status1.png') no-repeat -2px -3px;
    width: 20px;
    height: 20px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;h4&gt; Please Wait...... Performing checks on&lt;/h4&gt;
    &lt;ul&gt;
      &lt;li&gt; check1 &lt;img src="img_trans.gif" class="pass" /&gt;&lt;/li&gt;
      &lt;li&gt; check2 &lt;img src="img_trans.gif" class="fail" /&gt;&lt;/li&gt;
      &lt;li&gt; check3 &lt;img src="img_trans.gif" class="inprog" /&gt;&lt;/li&gt;
      &lt;li&gt; check4 &lt;img src="img_trans.gif" class="pend" /&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>`</p>