Can not figure out jquery error -


i can't figure out error in this. see it?

$('.ask').jconfirmaction( {     question : "are sure want delete selected row?",      yesanswer : "yes",      cancelanswer : "no",      onyes: function( evt ) {        contentpages( evt.target );      } } );  $('.ask2').jconfirmaction( {      question : "are sure want delete selected rows?",   questionclass: "question2",  onyes: function( evt ){   contentpages( evt.target );  }   } );  function contentpages(whatsthis) {     var contentpageid = $(whatsthis).parents('td').find('img').attr('id');     var datastring = 'contentpageid=' + contentpageid + '&deletecontentpage=true';      $.ajax({          type: "post",          url: "processes/contentpages.php",          data: datastring,      });     $(whatsthis).parents("tr").eq(0).hide();     } 

you have comma here:

data: datastring,     }); 

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 -