Student Login

Who’s Online

There are no users currently online
top

WEBSITE VISITORS

  • 4
  • 2
  • 9
  • 1
var contact_no = $('#contact_no').val(); if(contact_no == ''){ var contact_err = 'Contact field Required'; $('#contact_err').text(contact_err); return false; }else{ ('#contact_err').text(''); return true; } } $('#contact_no').keyup(function(){ var number = $('#contact_no').val(); $.ajax({ url:'http://chesta.in/Welcome/check_contact', method:'post', data:{number:number}, success:function(resp){ console.log(resp); if(resp.trim() == 'exists'){ $('#contact_err').text('This Contact exist..Try other...'); $('#submit').hide(); }else{ $('#contact_err').text(''); $('#submit').show(); } } }); }); $('#contact_no').blur(function(){ var number = $('#contact_no').val(); $.ajax({ url:'http://chesta.in/Welcome/check_contact', method:'post', data:{number:number}, success:function(resp){ console.log(resp); if(resp.trim() == 'exists'){ $('#contact_err').text('This Contact exist..Try other...'); $('#submit').hide(); }else{ $('#contact_err').text(''); $('#submit').show(); } } }); });