'); $('#dami').val(''); } else if(responseText > 0){ Result.html('*Email Id is allready available Click Here To Login'); $('#dami').val('0'); } else{ alert('Problem with sql query'); } } }); }else{ } if(username.length == 0) { Result.html(''); } } function makkkk1(mahhh) { var username =mahhh; var Result = $('#result1'); if(username.length > 2) { var dataPass = 'action=availability&email='+username; $.ajax({ type : 'POST', data : dataPass, url : 'emailcheckcandidate.php', success: function(responseText){ if(responseText == 0){ Result.html('*Email Id is Not Available'); $('#dami1').val('0'); } else if(responseText > 0){ Result.html(''); $('#dami1').val('1'); } else{ alert('Problem with sql query'); } } }); }else{ } if(username.length == 0) { Result.html(''); } } function submitform(span) { document.forms[span].submit(); } 