我使用Zebra Dialog,并且每次单击Delete时都会尝试发出警报。仅当我单击第一行中的删除时,警报才有效。它下面的所有行都不起作用,我不知道为什么?
<table>
<tr>
<td>Example1</td>
<td><a id="delete" href="#">Delete</a></td>
</tr>
<td>Example1</td>
<td><a id="delete" href="#">Delete</a></td>
</tr>
<td>Example1</td>
<td><a id="delete" href="#">Delete</a></td>
</tr>
</table>
<script>
$(document).ready(function(){
$("#delete").bind("click",function(e){
e.preventDefault();
$.Zebra_Dialog("Do you want to delete?",{
type : "question",
title: "Question"
});
});
});
</script>