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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -