title: How to get jQuery callback fire return value?
body: <p>I have this problem getting the return value from jQuery.Callback(), below is my code.</p>
  
  <p>This code generate using PHP:</p>
  
  <pre><code>var data = {text : "Invalid input value", callback : "foobar"}
  </code></pre>
  
  <p>Now using Javascript:</p>
  
  <pre><code>function foobar(text){
   //Check if empty
   return (text == '') ? true : false; 
  }
  
  var callbacks = $.Callbacks();
  callbacks.add(data.callback);
  var response = callbacks.fire('Hell World');
  
  // I need the return value here form foobar function
  alert(response)
  </code></pre>
  
  <p>The code above return jQuery $.Callbacks() object and not boolean. Any ideas or alternative to <code>jQuery.Callbacks()</code> ? Thanks in advance.</p>