There is such Html:
<input type="checkbox" name="type[]" value="100"> When a form is serialized, the name type [] is entered in the field, encoded with special characters and there are two types :
type%5B%5D=19&type%5B%5D=2 Serialization itself:
var formData = $(element).closest('form').serialize(); console.log(formData);