Regarding jquery
<p>I want to display all the elements which have been checked.</p>

<p>By using this code i tried to push all the checked elements to array1.  </p>

<pre><code>    var array1 = new Array();  
$(':checkbox').is(':checked').each(function()

        { //control not coming here
  array1.push($(this));
 }
 ); 
     alert("hi");
</code></pre>

<p>How to display the array1 contents .Thanks in advance.
NOTE  :  check the comments</p>
