Basic swap

Here we will make a request using a form tag (because only form tags can send requests) and the server will send a partial to update the UI without reloading. this action only need Briz.js

<form data-ajax
  data-swap="result"
  action="/partials/swap"
  method="get"
>
  <button type="submit">Greet</button>
</form>

Just click this button below, and it will update the UI.

Demo


Go back