jquery return false in form

Posted by pradeep on Stack Overflow See other posts from Stack Overflow or by pradeep
Published on 2010-04-07T18:19:14Z Indexed on 2010/04/07 18:23 UTC
Read the original article Hit count: 251

Filed under:

[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?

© Stack Overflow or respective owner

Related posts about jQuery