mix-get
<a href="item" mix-get>Get item</a>
<form action="items" mix-get>Get item</form>
<button mix-get="item">Get item</button>
A request needs to be started or triggered. The request, as for this version of mixhtml, can be started on click, submit, onfocus, onblur, onchange, and oninput. All other events,for example: hover, key press, key up, and so on, are most likely unecessary and rarely used and therefore are not part of mixhtml.
<a href="item" mix-get>Get item</a>
<form action="items" mix-get>Get item</form>
<button mix-get="item">Get item</button>
In a form, the url in the action attribute is used
<form action="items" mix-post><button>Submit</button></form>
In a form, the value in the mix-post attribute is used. For SEO reasons, this is not the recommended approach, yet it works.
<form mix-post="items"><button>Submit</button></form>
In a button, the url in the mix-post attribute is used
<button mix-post="items">Submit</button>
In a form, the url in the action attribute is used
<form action="items" mix-put><button>Submit</button></form>
In a form, the value in the mix-put attribute is used. For SEO reasons, this is not the recommended approach, yet it works.
<form mix-put="items"><button>Submit</button></form>
<button mix-put="items">Submit</button>
In a form, the url in the action attribute is used
<form action="items" mix-patch><button>Submit</button></form>
In a form, the value in the mix-patch attribute is used. For SEO reasons, this is not the recommended approach, yet it works.
<form mix-patch="items"><button>Submit</button></form>
<button mix-patch="items">Submit</button>
<a href="items" mix-delete>Get item</a>
<form action="items" mix-delete><button>Submit</button></form>
<button mix-delete="items">Submit</button>
<input mix-get="/items" mix-input>
<input mix-post="/items" mix-input>
<textarea mix-get="/items" mix-input><textarea>
<textarea mix-post="/items" mix-input><textarea>
<input mix-get="/items" mix-delay="1000">
<input mix-post="/items" mix-delay="1000">
<textarea mix-get="/items" mix-delay="1000"><textarea>
<textarea mix-post="/items" mix-delay="1000"><textarea>
<input mix-get="/items" mix-focus>
<input mix-post="/items" mix-focus>
<textarea mix-get="/items" mix-focus><textarea>
<textarea mix-post="/items" mix-focus><textarea>
<input mix-get="/items" mix-blur>
<input mix-post="/items" mix-blur>
<textarea mix-get="/items" mix-blur><textarea>
<textarea mix-post="/items" mix-blur><textarea>
<div id="the-cover" class="mix-hidden"></div>
<a href="item" mix-cover="#the-cover" mix-get>Get item</a>
<button mix-await="Please wait..." mix-done="Get item">Get item</button>
<input mix-post="items" mix-validate="^.{2,20}$">