I use ajax with jquery and when I tried to display the result in popup. Then alert always displays 0
0
success : function(results) { alert(result
Make sure the action_name is ok. If it's not found in functions.php you will get 0 as the result.