title: How to print array data in alert
body: <pre><code>saveData: function()
      {
  
          var element = $('input');
          for(var i=0;i&lt;element.length;i++)
          {
              //alert($(element[i]).val());
              var p=new Array($(element[i]).val());
          }
          alert(p);
  
      },
  </code></pre>
  
  <p>How to print array data in alert.</p>