php - JQuery delete button not working -


hi have jquery function creates popup dialog box, have click continue, whilst box pops , works fine link doesn't trigger php link.

below jquery code:.

jquery('.delete-row').click(function () {     var conf = confirm('continue delete?');     if (conf) jquery(this).parents('tr').fadeout(function () {        jquery(this).remove();     });     return false; }); 

and here code calls dialog box , should pass php info block.php page:

 echo "<a href=\"block.php?ip_address={$ip_address}&id={$id}&userna={$username1}\" class='delete-row' data-original-title='delete'>block</a>"; 

you try:

jquery(document).on('click', '.delete-row', function () {     var conf = confirm('continue delete?');     if (conf){ jquery(this).parents('tr').fadeout(function () {             jquery(this).remove();         });         return true;     }     return false; }) 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -