Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### serializeForm
|
||||
---
|
||||
title: serializeForm
|
||||
tags: browser,string,intermediate
|
||||
---
|
||||
|
||||
Encode a set of form elements as a query string.
|
||||
|
||||
@ -13,4 +16,4 @@ const serializeForm = form =>
|
||||
|
||||
```js
|
||||
serializeForm(document.querySelector('#form')); // email=test%40email.com&name=Test%20Name
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user