I got following code :
$.ajax({ type: \"POST\", async: false, url: \"CheckIdExist\", data: param, success: function(result)
You can't put this code in a function or in the onsubmit of a form, the success function returns it's result returning to the jQuery ajax context, NOT the form submit context.