Yii-自定義刪除確認(rèn)彈框(zyd)jquery實現(xiàn)代碼
更新時間:2013年03月04日 16:40:08 作者:
Yii-自定義刪除確認(rèn)彈框(zyd),簡單/時尚/大方適合比較愛酷的人使用,時尚的你可不要錯過了哈,希望本文知識點可以幫助到你
1.鏈接
<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/company/msglog/delete/id/'.$data->zml_id.'","你確定要刪除這條消息嗎?")'))?>
2.jq
<script>
//單項刪除確認(rèn)框
function art_del_confirm(url,message){
message = message?message:'你確定要刪除這條數(shù)據(jù)嗎?';
art.dialog({
title: '確認(rèn)刪除',
okValue:'確認(rèn)',
cancelValue:'取消',
width: 230,
height: 100,
fixed: true,
content: message,
ok: function () {
window.location.href=url;
return true;
},
cancel: function () {
return true;
},
});
}
</script>
效果圖
復(fù)制代碼 代碼如下:
<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/company/msglog/delete/id/'.$data->zml_id.'","你確定要刪除這條消息嗎?")'))?>
2.jq
復(fù)制代碼 代碼如下:
<script>
//單項刪除確認(rèn)框
function art_del_confirm(url,message){
message = message?message:'你確定要刪除這條數(shù)據(jù)嗎?';
art.dialog({
title: '確認(rèn)刪除',
okValue:'確認(rèn)',
cancelValue:'取消',
width: 230,
height: 100,
fixed: true,
content: message,
ok: function () {
window.location.href=url;
return true;
},
cancel: function () {
return true;
},
});
}
</script>
效果圖
相關(guān)文章
jquery 自定義容器下雨效果可將下雨圖標(biāo)改為其他
這篇文章主要介紹了jquery 自定義容器下雨效果可將下雨圖標(biāo)改為其他,需要的朋友可以參考下2014-04-04
用JQuery在網(wǎng)頁中實現(xiàn)分隔條功能的代碼
在C/S系統(tǒng)中有專門的分隔條控件,很方便實現(xiàn),但在Asp.net中卻沒有。本文介紹了一種使用JQuery技術(shù)實現(xiàn)分隔條的功能2012-08-08
Jquery組件easyUi實現(xiàn)手風(fēng)琴(折疊面板)示例
這篇文章主要為大家詳細(xì)介紹了Jquery組件easyUi實現(xiàn)手風(fēng)琴示例,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下2016-08-08
jquery 將disabled的元素置為enabled的三種方法
在jquery中可以通過jqueryObj.attr("disabled","disabled")將頁面中某個元素置為不可編輯或觸發(fā)狀態(tài),但是在jquery的API reference中并沒說明怎么將頁面置為disable的元素重新置為可觸發(fā)或可編輯的。2009-07-07

