jquery

$('a#submitarray').click(function(){ 
 
   
var datearray = new Array(); 
 
    $
('.selected').each(function(){ 
        datearray
.push($(this).attr('id')); 
   
}); 
 
   
// AJAX code to send datearray to process.php file 
 
}); 
原文地址:https://www.cnblogs.com/opaljc/p/2393662.html