Hello, first I want to point that I'm using jQWidgets.
I want to pass an attribute from jquery to a PHP file. Now, I've tried using $.post.
Like this:
Code:
$('#problemiTree').bind('select', function (event) {
var item3 = $('#problemiTree').jqxTree('getSelectedItem');
if (item3 && item3.parentId!=0)
dataAdapter4.dataBind();
$.post(
"problemiOblastData.php",
{ selectedItem: item3.label }
);
In the PHP file I test with:
Code:
if (isset($_GET['selectedItem:']))
echo 'no';
else
echo 'yes';
And it always gives "no".
Please help,
thank you.