-1
I can create my javascript array and store the values inside an array called ArmazenaIds
ArmazenaIds = new Array();
$('.checkboxs').each(function () {
var estadoDoCheck = $(this).prop('checked');
if(estadoDoCheck == true) {
id = $(this).attr('iddoemail');
ArmazenaIds.push(id);
alert(ArmazenaIds);
}
});
console.log(ArmazenaIds);
$.ajax({
url:'ajaxDoEnvioMensagem.php',
type:'post',
data:ArmazenaIds,
beforeSend:function() {
alert('carregando');
I wanted to know how I can send this array with all the data inside to ajaxDoEnvioMensagem.php and be able to receive them in php;
My goal is to get this data , receive in the.php sending and right after calling the php method of the objects.php;