I have a text field: <input type="text" class="field blink" name="j-state[]" id="j-state"/>
The data in it will be a comma-separated list of states, e.g. New York,New Jersey
.
I am using serialize()
to grab the form's data. I want to form an array of these states, and pass the array along with serialized data.
Can any help me to achieve this?
Thanks in advance.