1) In the Grid if we have multiple Check Boxes if we wont select any thing we have to show alert box in J Query when we click Delete Button
Solution :
function showAlertBoxWhenNotSelectAnyThing() {
var selected = new Array();
$('input:checked').each(function() {
selected.push($(this).attr('id'));
});
if(selected.length === 0){
alert("selected atleast one check box to delete data");
}
}
Solution :
function showAlertBoxWhenNotSelectAnyThing() {
var selected = new Array();
$('input:checked').each(function() {
selected.push($(this).attr('id'));
});
if(selected.length === 0){
alert("selected atleast one check box to delete data");
}
}
Comments