Hi, i have a problem with the jquery post.
my vars
var checki = '1';
var my_var = 't95';
this works fine
var data = { 'mo': 'usr', 'dt': 'update_uis', 'values[0][t95]': checki']};
but when when i insert the var, it will not work
var data = { 'mo': 'usr', 'dt': 'update_uis', 'values[0]['+my_var+']': checki']}; // dont work
$.ajax({ type: 'post',
cache: false,
url: 'tsal.php',
data: data,
dataType: 'json',
success: function (data)
{
// blub
}
});
My problem is that i dont get an error. Hope somebody can help me.
Thanks in advance! Peter