On Click of delete button is it possible to remove the table row based on the data attribute ?
This is my js code
$(document).on("click", ".deletevideo", function(event) {
if (confirm("Are You Sure to Remove This Video From This PAC?") == true) {
var video_id = $(this).data('videoid');
}
event.stopImmediatePropagation();
event.preventDefault();
return false;
});
Fiddle
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…