'
+ );
+ });
+});
diff --git a/test/index.html b/test/index.html
index 86113143..15aa3ef4 100644
--- a/test/index.html
+++ b/test/index.html
@@ -134,6 +134,9 @@
+
+
+
diff --git a/www/docs.md b/www/docs.md
index 90801008..b3bc0cc4 100644
--- a/www/docs.md
+++ b/www/docs.md
@@ -952,6 +952,7 @@ Htmx includes some extensions that are tested against the htmx code base. Here
| [`client-side-templates`](/extensions/client-side-templates) | support for client side template processing of JSON responses
| [`path-deps`](/extensions/path-deps) | an extension for expressing path-based dependencies [similar to intercoolerjs](http://intercoolerjs.org/docs.html#dependencies)
| [`class-tools`](/extensions/class-tools) | an extension for manipulating timed addition and removal of classes on HTML elements
+| [`multi-swap`](/extensions/multi-swap) | allows to swap multiple elements with different swap methods
See the [extensions page](/extensions#included) for a complete list.
@@ -1386,7 +1387,7 @@ listed below:
| `htmx.config.wsReconnectDelay` | defaults to `full-jitter`
| `htmx.config.disableSelector` | defaults to `[disable-htmx], [data-disable-htmx]`, htmx will not process elements with this attribute on it or a parent
| `htmx.config.timeout` | defaults to 0 in milliseconds
-| `htmx.config.defaultFocusScroll` | if the focused element should be scrolled into view, defaults to false and can be overriden using the [focus-scroll](/attributes/hx-swap/#focus-scroll) swap modifier.
+| `htmx.config.defaultFocusScroll` | if the focused element should be scrolled into view, defaults to false and can be overridden using the [focus-scroll](/attributes/hx-swap/#focus-scroll) swap modifier.
diff --git a/www/extensions.md b/www/extensions.md
index 043ba2e4..2ecfdb8c 100644
--- a/www/extensions.md
+++ b/www/extensions.md
@@ -75,6 +75,7 @@ See the individual extension documentation for more details.
| [`loading-states`](/extensions/loading-states) | allows you to disable inputs, add and remove CSS classes to any element while a request is in-flight.
| [`method-override`](/extensions/method-override) | use the `X-HTTP-Method-Override` header for non-`GET` and `POST` requests
| [`morphdom-swap`](/extensions/morphdom-swap) | an extension for using the [morphdom](https://github.com/patrick-steele-idem/morphdom) library as the swapping mechanism in htmx.
+| [`multi-swap`](/extensions/multi-swap) | allows to swap multiple elements with different swap methods
| [`path-deps`](/extensions/path-deps) | an extension for expressing path-based dependencies [similar to intercoolerjs](http://intercoolerjs.org/docs.html#dependencies)
| [`preload`](/extensions/preload) | preloads selected `href` and `hx-get` targets based on rules you control.
| [`remove-me`](/extensions/remove-me) | allows you to remove an element after a given amount of time
diff --git a/www/extensions/multi-swap.md b/www/extensions/multi-swap.md
new file mode 100644
index 00000000..b12eff1a
--- /dev/null
+++ b/www/extensions/multi-swap.md
@@ -0,0 +1,71 @@
+---
+layout: layout.njk
+title: > htmx - multi-swap extension
+---
+
+## The `multi-swap` extension
+
+This extension allows you to swap multiple elements marked with the `id` attribute from the HTML response. You can also choose for each element which [swap method](/docs/#swapping) should be used.
+
+Multi-swap can help in cases where OOB ([Out of Band Swaps](/docs/#oob_swaps)) is not enough for you. OOB requires HTML tags marked with `hx-swap-oob` attributes to be at the TOP level of HTML, which significantly limited its use. With OOB is not possible to swap multiple elements arbitrarily placed and nested in the DOM tree.
+
+It is a very powerful tool in conjunction with `hx-boost` and `preload` extension.
+
+#### Usage
+
+1. Set `hx-ext="multi-swap"` attribute on ``, on some parent element, or on each action element that should trigger an action (typically anchors or buttons).
+2. On your action elements set `hx-swap="multi:ID-SELECTORS"`, e.g. `hx-swap="multi:#id1,#id2:outerHTML,#id3:afterend"`.
+3. If you're not using e.g. `hx-get` to enable HTMX behavior, set `hx-boost="true"` on your action elements, or on some parent element, so that all elements inherit the hx-boost setting.
+
+Selectors must be separated by a comma (without surrounding spaces) and a colon with the desired swap method can optionally be placed after the selector. Default swap method is `innerHTML`.
+
+```html
+
+ <-- simple example how to swap #id1 and #id2 from /example by innerHTML (default swap method) -->
+
+
+ <-- advanced example how to swap multiple elements from /example by different swap methods -->
+ Click to swap #id1 and #id2, extend #id3 content and delete #id4 element
+
+
Old 1 content
+
Old 2 content
+
Old 3 content
+
Old 4 content
+
+```
+
+**Real world example with preloading**
+
+The use case below shows how to ensure that only the `#submenu` and `#content` elements are redrawn when the main menu items are clicked. Thanks to the combination with the preload extension, the page, including its images, is preloaded on `mouseover` event.
+
+```html
+
+
+
+
+
+
+ ...
+