AJAX form

Let's load a form using AJAX

Do you love AJAX?

javascript code

inspect console, then click on the button

//form.js

$( document ).ready(function() {

  $(document).on('click', '#loveAjax', function(event){

    $('#ajaxForm').load('form.php', function(){
      console.log('form loaded, now we can animate it!');
    });

  });

});