I already have some output from a jQuery function, say:
users => “1”, “2”, “3”, “4”
Now, I have some data that looks like ‘4’, ‘3’ ,’4′, ‘4’, it is an array.
I need to add a piece of data as count => “4”, “3”, “4”, “4” to my existing output and post the overall output
users => "1", "2", "3", "4"
count => "4", "3", "4", "4"
to my controller. How do I append this new parameter?
1 Answer