title: how to alert javascript object
body: <p>I am trying to study the jquery class, but I have a hard time debugging an object because I can't see the element inside of it</p>
  <pre class="lang-js prettyprint-override"><code>$(&quot;#birds&quot;).autocomplete({
      source: &quot;search.php&quot;,
      select: function (event, ui) {
          alert(ui);
      }
  });
  </code></pre>
  <p>it returns [object Object].. :( My question is how can I alert the object so that I can see the element?</p>