title: How to convert JQuery AJAX function to vue.js
body: <p>I have the following AJAX function written in jQuery (just make AJAX call to get outcome for div A and div B - the example is simplified)</p>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>$(document).ready(function(){
      $( "#c" ).on( "click", function() {
          jQuery.ajax({
              type: "POST",
              url: "post.php",
              data: "",
              dataType:"JSON",
              success: function(data){
                  if (data.status == 1){
                      $("#a").html(data.a);
                      $("#b").html(data.b);
                  }
              }
          })
      })
  })
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="a"&gt;&lt;/div&gt;
  &lt;div id="b"&gt;&lt;/div&gt;
  &lt;button id="c"&gt;Start&lt;/button&gt;
  </code></pre>
  
  <p>I understand how to make the HTML template for vue.js and how to set JavaScript variables, but how do I to set AJAX request for vue.js?</p>
  
  <p>Thank you.</p>