$
(
'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/archive/2012/03/13/2393662.html