title: Grails - how to load a template using ajax?
body: <p>Here's what i've done so far:</p>
  
  <pre><code>$(document).ready(function(){    
      $("#botao").click(function (ev) {
          ev.preventDefault();        
          var loading = new Image();
          loading.src = "images/spinner.gif"        
          $.ajax({
              type: 'POST',
              url: "index.gsp",
              data: &lt;missing&gt;,  
              beforeSend: function(){
                  $("#divForm").html(loading);
              },
              success: function(data){
                  $("#divForm").html(data);
              },            
          });
      });
  });
  </code></pre>
  
  <p>how can I pass my template using a button to load it in a div called #divForm?</p>
  
  <p>Thanks!</p>