title: Ajax : Why success displays 0?
body: <p>I use ajax with jquery and when I tried to display the result in popup.
  Then alert always displays <code>0</code></p>
  
  <pre><code>success : function(results) { 
  alert(results); }
  </code></pre>
  
  <p>EDIT : </p>
  
  <blockquote>
  <pre><code> var dataToSend = {
      action:"ACTION_NAME",
      id : "12"
    };
    url_action = 'http://www.______.com/wp-admin/admin-ajax.php';
    $.ajax({
            url: url_action,
            type:'POST',
            data: dataToSend,
            success:function(results)
            {
               alert(results);
            }
     });
  </code></pre>
  </blockquote>