title: How to return more than one value to jQuery.Ajax success function
body: <p>I'm trying to return more than one value to jqueryAjax success but failed to do so. this what I have done so far......</p>
  
  <pre><code> String emp = request.getParameter("ID");
      ArrayList&lt;String&gt; al = new ArrayList();
      al=ur.editLeave(emp);
      String cl = al.get(0);
      out.print(cl);
      out.print(al.get(1));
      out.print(al.get(2));
  </code></pre>
  
  <p>from this jsp page I try to return 3 values.</p>
  
  <pre><code>$.ajax({
      type: "GET",
      data: 'ID=' + idel,
      async: false,
      url: "ForleaveMaster.jsp?Eleave=l",
      success: function(cl, ml, ot) {
          alert(cl, ml, ot);
          $('input[id=ELM_CL]').val($.trim(cl));
          $('input[id=ELM_ML]').val($.trim(cl));
          $('input[id=ELM_OT]').val($.trim(cl));
      },
      error: function() {}
  });
  </code></pre>
  
  <p>Please help me out.</p>