I have this :
p['record_id'] = 2;
$('#trcode').val($(this).load('url_to_PHP_methode',p,function(str){}));
The value returned from PHP method is like this -> "Just String"
In firebug, there is correct response value, "Just String"
, but in text input with ID #trcode
it shows [object Object]
.
So, my question is: How to show the correct return value just like Firebug "Just String"
?