I want to manipulate a JavaScript array in PHP. Is it possible to do something like this?
$.ajax({ type: "POST", url: "tourFinderFunctions.php", data: "activitiesArray="+activities, success: function() { $("#lengthQuestion").fadeOut('slow'); } });
Actions are a one-dimensional array, for example:
var activities = ['Location Zero', 'Location One', 'Location Two'];
The script does not end when I try to do this ... How to fix it?
javascript jquery ajax php
krx Jan 06 2018-10-06 14:56
source share