Joined Filter
Search and filter releases with one server request.
HTML
<form class="rlw-filter" hx-get="/demo/workspace/filter" hx-target="find output" hx-sync="this:replace">
<div class="rlw-join"><input type="search" name="q" class="rl-input" placeholder="Find a product" aria-label="Search products"><select name="status" class="rl-select" aria-label="Filter by status"><option value="">All states</option><option>Draft</option><option>Ready</option></select><button class="rl-button rl-button-sm rl-button-primary" type="submit">Filter</button></div>
<output class="rlw-results" aria-live="polite"><span><strong>Arc Task Lamp</strong> <small>Ready</small></span><span><strong>Studio stool</strong> <small>Draft</small></span><span><strong>Field notebook</strong> <small>Ready</small></span></output>
</form>HTTP exchange
Use the preview to see the request and the HTML your server returns.Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-workspace.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-workspace.js"></script>Point the HTMX attributes at your own HTML endpoints. Use the live preview’s HTTP exchange to inspect the request and response.
Download library and examples ↓