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
Post a Comment