I have added this function to my delete button...
function DeleteRec(vnd)
{
var answer = confirm ("Do You Want To Delete Vendor "+vnd+"?\nClicking on the 'Ok' button to continue delete\nClick on 'Cancel' button to cancel.");
if (!answer) return false;
I get the Confirm message but problem is even if I select Cancel, it goes and deletes the record.
I was just wondering where I am going wrong. Let me know.
Thanks
function DeleteRec(vnd)
{
var answer = confirm ("Do You Want To Delete Vendor "+vnd+"?\nClicking on the 'Ok' button to continue delete\nClick on 'Cancel' button to cancel.");
if (!answer) return false;
I get the Confirm message but problem is even if I select Cancel, it goes and deletes the record.
I was just wondering where I am going wrong. Let me know.
Thanks