I have the below JS/Jquery function called in the onclientclick of ASP.NET button which should return true or false or show confirm dialog, the problem is when the $.get function is called it also calls the server side onclick event of the button.. any ideas?
function CheckPaymentStatus()
{
if(document.getElementById('<%= radio15E.ClientID %>').checked
{
$.get("../AJ.ashx?name=John&location=Boston",null).done(
function(msg)
{
return(window.confirm("do you wish to proceed?"));
})
}
else
{
return true;
}
}