Home > Web Front-end > JS Tutorial > body text

jquery binding click event sample code for a tag_jquery

WBOY
Release: 2016-05-16 16:43:14
Original
1578 people have browsed it
$(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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!