jquery return false in form
- by pradeep
[CODE]
function confirmSubmit()
{
jConfirm('Is the Appointment Confirmed?', 'Confirmation Dialog', function(r) {
if(r){return true;}
else {return false;}
});
}
[/CODE]
whjen i submit the foem i call this function and use jConfirm from jquery. i print r .its printing properly like true and false.but return false or return true has no effects.it just shows ths pop up and submits the form,does not wait for confirmation. how to solve this?