Skip to content

Instantly share code, notes, and snippets.

@pillows
Created December 28, 2014 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pillows/fde32a4414cf94433e68 to your computer and use it in GitHub Desktop.
Save pillows/fde32a4414cf94433e68 to your computer and use it in GitHub Desktop.
$(".url-check").bind("propertychange change click keyup input paste",function() {
var url = $("url-check").val();
var resp = {"url":url};
console.log(url);
console.log(resp);
var response = $.ajax({
type: "POST",
url: '/api/v1/verify',
data: resp,
success: function(data) {
console.log(data);
}
});
}).delay(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment