Skip to content

Instantly share code, notes, and snippets.

@blister
blister / gist:7450475
Last active December 28, 2015 05:29 — forked from sehugunin/gist:7450449
<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();
}