hi all,
I am using one javascript function for confirmation in submitting link in database. As we know there is two option comes for confirmation for YES and NO. But when i am clicking NO button then it is submitting the request . But i want when i click only on YES then it should submit form other wise it returns false.
But this is not going.So please help me to solve this. I am sending code which i am using :-- <a href="addlink.php?id=<?=$row[ID]?>" onClick="subconfirm()" class="nbluelinkfont">SUBMIT</a>
and this is javascript code which i am using:----
function subconfirm() {
if (!confirm("Are you sure to submit these details from database?")) {
return false;
} else { return true;
}
}
But problem is that when i am clicking no then it is going to submit. Please help me to solve this.
thanks