I\'ve got a php array:
$toField = explode(\",\", $ids); //Which looks something like \'24,25,26,29\'
I want to pass this array via jQuery AJAX
Few things going on I'd sort out:-
You're missing the id 'toField' on your toField input element.
You should be using implode() on the $id variable rather than exploding it.
On the otherside you should be calling explode() on the recieverId string.