Skip to content

Instantly share code, notes, and snippets.

@blister
Forked from sehugunin/gist:7450449
Last active December 28, 2015 05:29
Show Gist options
  • Save blister/7450475 to your computer and use it in GitHub Desktop.
Save blister/7450475 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery(function() {
jQuery('#WorkPhone').on('blur', function() {
if(jQuery(this).val().length > 0) {
jQuery.get('test.php', { 'WorkPhone': jQuery('#WorkPhone').val() }, function(data) {
if ( data == 'Phone is a probable landline' ) {
jQuery('#showDiv').fadeIn();
} else {
jQuery('#showDiv').fadeOut();
}
});
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment