jQuery delete confirmation box

前端 未结 9 1002
粉色の甜心
粉色の甜心 2020-12-24 11:26

In my jQuery am displaying my results in a table formatted output, a part of my jQuery is



        
9条回答
  •  鱼传尺愫
    2020-12-24 12:06

    Try with this JSFiddle DEMO : http://jsfiddle.net/2yEtK/3/

    Jquery Code:
    
    $("a.removeRecord").live("click",function(event){
       event.stopPropagation();
       if(confirm("Do you want to delete?")) {
        this.click;
           alert("Ok");
       }
       else
       {
           alert("Cancel");
       }       
       event.preventDefault();
    
    });
    

提交回复
热议问题