$.post returns data but, can access values
Hi,
I'm trying to get some data using the $.post method. the alert() indeed returns a json formated list of the correct values however, I am unable to access the individuals values. From the documentation, it says you should be able to do a data.variablename to access the individual values. This returns an "undefined" error. What am I doing wrong? How do I access each individual element of the data? Are 2d arrays possible? I am using the json_encode() function in php on the handler.
- $.post("ajaxbridge.php",$("#modhostnetform").serialize(),function(data){
alert(data);
});