Last active
December 20, 2015 07:49
-
-
Save hsnaydd/6096414 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#tag').on('keyup keydown', function(e){ | |
var tagvalue = $(this).val(); | |
$('#tekkodkodarama ul li').remove(); | |
if(tagvalue !== '' ){ | |
$.ajax({ | |
type: "POST", | |
url: "databank.php", | |
data:{'tagvalue':tagvalue}, | |
ajaxStart:function(){ | |
$('#tekkodkodarama ul li').html('Uygun Makale Aranıyor...'); | |
}, | |
success:function(donenVeri){ | |
$('#tekkodkodarama ul').html(donenVeri); | |
}, | |
statusCode: { | |
404: function() { | |
alert('Makale Bankasını Bulamadım.'); | |
} | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment