Go to main content

ONLINE CLASS FOR DEVELOPMENT WITHIN EXTENSO

COURSE #18 (english)

Generate and Ajax

<script>

    $("form" ).on("submit", function( event ) {

        event.preventDefault();

        let data =  $(this).serialize();

        $.ajax({

      url : "/save_form.sn",

      dataType: 'json',

      data : data

          }).done(function(response) {

          console.log(response);

  $('#table').html(response.output);

          });

    });

</script>