title: How to disable and enable div dynamically
body: <p>I'm developing a shopping site in which I'm validating the address using zipcode during the checkout. I want to disable each div which is not deliverable.
  Below, is the code</p>
  
  <pre><code>&lt;?php
      if (isset($all[0])) {
          for($i = 0; $i &lt;= count($all) ; $i++) {
              if (isset($all[$i])) {
  ?&gt;
                  &lt;div class="col-sm-5 col-md-3 col-xs-12"&gt;
                      &lt;div id="addrs" class="col-sm-12 col-md-12 col-xs-12 addr-box" data-addr="&lt;?php echo $all[$i]['id']; ?&gt;"&gt;
                          &lt;strong&gt;&lt;?php echo $all[$i]['name']; ?&gt;&lt;/strong&gt;
                          &lt;?php echo $all[$i]['zip'] ?&gt;
                          &lt;?php
                              if ($all[$i]['zip'] &amp;&amp; (in_array($all[$i]['zip'], $area['area']))) {
                                  $availability = '&lt;p&gt;True&lt;/p&gt;';
                              } else {
                                  $availability = '&lt;p&gt;False&lt;/p&gt;';
                              }
                          ?&gt;
                      &lt;/div&gt;
                      &lt;?php echo $availability ?&gt;
                  &lt;/div&gt;
  &lt;?php
              }
          }
      }
  ?&gt;
  </code></pre>