Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
To dispaly Custom Text when no records are found
Rp Singh
Feb 20 2017 12:03 AM
193
Reply
Hi ALL,
I want to display custom message " NO RECORDS" when user deletes all data entries from the grid.
Javascript CODE-
function
Delete(altId) {
var
ctrlDeleteId =
'.deleteAl'
+ alertId.toString();
if
(confirm(
'Are you sure you want to delete it?'
)) {
$.post(
'Update.ashx'
, { AltId: altId, actionType:
'delete'
},
function
(data) {
if
(data ===
'Success'
) {
$(ctrlDeleteId).closest(
"tr"
).hide(300,
function
() { $target.remove(); });
}
});
}
};
thanks,
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Auto Search DropDownList with JQuery and AJAX Update Panel
color the table row to red