$(document).ready(function(){
                $(".item_delete").easyconfirm({locale: {
                        title: 'Select Yes or No', 
                        text: 'Do you really want to delete this product?',
                        button: ['No','Yes']
                }});
                $(".item_delete").click(function(){
                    $(location).attr('href',$(this).attr("href"));
                });
            });
上面的代码是我想要运行的代码,但是它不适用于 MULTIPLE 链接,可能是因为代码无法确定选择哪个 HREF。
            <a href="<?php echo "index.php?module=account&del_product=".$row['product_code']; ?>" class="item_delete ui-icon ui-icon-trash"></a>
如果链接有多个href,如下所示,jquery 如何检测我点击的特定链接?
             <a href="index.php?module=account&del_product=1"></a>
             <a href="index.php?module=account&del_product=2"></a>
             <a href="index.php?module=account&del_product=3"></a>
             <a href="index.php?module=account&del_product=4"></a>
             <a href="index.php?module=account&del_product=5"></a>
             <a href="index.php?module=account&del_product=6"></a>
感谢您的合作...
顺便说一句,我使用这个用于 jQuery 的“Easy Confirm Dialog”插件 - http://projectshadowlight.org/jquery-easy-confirm-dialog/