I have the following code
$.post('page.php', {prop.name: prop.hash}, function (data) {
console.log(data);
});
Note that, prob
is an object and (name
,hash
) are properties.
The problem in prop.cr_name
, always give me this error message:
SyntaxError: missing : after property id
Also I have changed the way from prop.name
to prop['name']
but the problem still occur.
How to solve this problem ?