Sign inSign up

jQuery Mobile List Item Deletion Plugin

Add-ons
2026-07-21 12:57 5 views • 0 downloads 16.1KB
jQuery Mobile List Item Deletion Plugin

Note: Please view the effect on a mobile device.

Last Updated: 2017/2/22 4:25:22 PM

Changelog:Added a method to hide the delete button by swiping right.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$(".session-box").slide2del({
sItemClass: "session-box",
sDelBtnClass: "del-btn",
delHandler: function (target) {
var text = target.find('.session-content').text();
target.remove();
alert(text+"Successfully deleted");
},
itemClickHandler: function (target) {
console.log("You clicked the option:" + target.text());
$(this).slide2del_hideDel();
}
});