I use Zebra Dialog and I'm trying to make an alert set off every time a Delete is clicked.
The alert is only working when I click Delete in the first row. All rows below it does not work and I dont know why?
<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>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…