What I’m attempting to do is have their be an array of items that are checked be made for when the user clicks on the Delete Content Pages. I have an array with the name in the check boxes but I’m thinking my thinking is wrong.
Edit:
$('.ask2').jConfirmAction( {
question : "Are you sure you want to delete all selected rows?",
questionClass: "question2",
onYes: function(evt){
contentpages(evt.target);
}
} );
function contentpagesArray(whatsThis) {
$('#delete').click(function () {
var delOut = new Array();
$('tbody')
.children()
.find('td>input[type="checkbox"]')
.each(function ()
{
if ($(this).is(':checked'))
delOut.push($(this).attr('value'));
});
console.debug(delOut);
alert(delOut);
});
}
Well, with all of your other js files, this solution broke in practice (because I couldn’t edit your files). But a good example would be:
Instead of using click, I would patch this into the confirmation click for the popup dialogue you have. This will generate an array, which can be used by jquery as data for your ajax post (just add the other values needed to the array).
Hope this helps (make sure not to use tbody for the main selector if you have more then one table as well).