In my controller have actionGetRandomCode
. Why when I shown with jQuery like this
var ran = $.get('index.php?r=registrations/get-random-code');
alert(ran);
Its getting show [object Object]
?
But in my dev tool response I get what I want RQLGLS