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 }
);[/code]
In the PHP file I test with:
[php]if (isset($_POST[‘selectedItem’]))
echo ‘yes’;
else
echo ‘no’;[/php]
Maybe I’m not testing correctly. I use a direct link to the php file to check echo.
I’ve tried using $.ajax, but the result is the same.
Thanks.