Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- $('.form-inline').on('submit', function() {
- $.ajax({
- url: $('[name=url]').val(),
- type:'HEAD',
- error: function()
- {
- $('<h2>').text('nah, check your input lol');
- },
- success: function()
- {
- $('<h2>').text('submitted, yo!');
- }
- });
- $('<h2>').css('display','');
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement