Home  >  Article  >  Web Front-end  >  jquery binding click event sample code for a tag_jquery

jquery binding click event sample code for a tag_jquery

WBOY
WBOYOriginal
2016-05-16 16:43:141577browse
$(document).ready(function() {
$("a[name='del']").click(function(){
Ext.Msg.confirm('提示','你确定要删除该公告吗?',function(button,text){
if(button=='yes'){
window.location.href="/admin/note!delete.action?id=${id}";
}
});
});
$("a[class='del2']").click(function(){
Ext.Msg.confirm('提示','你确定要删除该公告吗?',function(button,text){
if(button=='yes'){
window.location.href="/admin/note!delete.action?id=${id}";
}
});
});
});

<a name="del">删除</a>
<a class="del2">删除2</a>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn