I used like this
var fData = $('.my_form').serializeArray();
which was my formdata
, which contains
all the form inputs done by the user.
the output of serializeArray will look like this
- name: ‘library[0][] ‘,value : ‘3’
- name: ‘library[0][] ‘,value : ‘5’
- name: ‘time’ , value: ‘2:30 PM’
- name: ‘bookname’, value: ‘space mission’
- name: ‘library[1][] ‘,value : ‘8’
- name: ‘detail_days[0][]’, value: ‘3’
.
.
like this, i need only library array alone from it, how to fetch it?
library = >{ ‘0’ =>{‘3′,’5’}, ‘1’ =>{‘8′,’10’}
like this i need to access this specific array alone
is there anything like serializeArray, forgetting only the specific array