Welcome Guest, Not a member yet? Register   Sign In
How To convert the Php array to Javascript array
#3

If you're actually printing the json encoded string in an attribute, and then expect JS to get that string and use it as an array or object, you'll need to use JSON.parse() in your JS.
Reply


Messages In This Thread
RE: How To convert the Php array to Javascript array - by skunkbad - 03-01-2016, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB