Hi
I am deleting records from database using checkbox. means only that record will be deleted from database which are selected in checkbox. and before deleting record I am displaying a message "Are you sure to delete the selected records" using javascript.and when user clicks OK, record is deleted.
Here in message I want it should like "Are you sure to delete 5 records" if user selects 5 records. So how can I do this using javascript.
And if user without selecting any checkbox and clicks Delete button then it should display message "no record is selected. please select" using javascript so how can I do this in javascript.
Name of the checkbox is chkdelete.
I am deleting records from database using checkbox. means only that record will be deleted from database which are selected in checkbox. and before deleting record I am displaying a message "Are you sure to delete the selected records" using javascript.and when user clicks OK, record is deleted.
Here in message I want it should like "Are you sure to delete 5 records" if user selects 5 records. So how can I do this using javascript.
And if user without selecting any checkbox and clicks Delete button then it should display message "no record is selected. please select" using javascript so how can I do this in javascript.
Name of the checkbox is chkdelete.
Comment