$.ajax({ type: "POST", async:false, url:"isRepeated?stName="+stName+"&id="+id, success: function(msg){ } });