Custom attribute in serialized array
Is it possible to store other attributes than id and value of an input to a serialized array?
Example:
html field:
<input type="text" name="NOT1NO" id="NOT1NO" value="1" custom="test" />
Using serializeArray creates array like
- [
- {
- name: NOT1NO
- value: 1
- },
Is it possible to include for instance the type attribute and custom attribute? Example:
- [
- {
- name: a
- value: 1
- type:text
- custom:test
- },