jquery - An array for deleting a group of items in a list.DIT: -


what i'm attempting have array of items checked made when user clicks on delete content pages. have array name in check boxes i'm thinking thinking wrong.

http://jsfiddle.net/uvdec/

edit:

$('.ask2').jconfirmaction( {        question : "are sure want delete 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, of other js files, solution broke in practice (because couldn't edit files). example be:

$('#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);                     }); 

instead of using click, patch confirmation click popup dialogue have. generate array, can used jquery data ajax post (just add other values needed array).
hope helps (make sure not use tbody main selector if have more 1 table well).


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -