Skip to content

Instantly share code, notes, and snippets.

@hsnaydd
Last active December 20, 2015 07:49
Show Gist options
  • Save hsnaydd/6096414 to your computer and use it in GitHub Desktop.
Save hsnaydd/6096414 to your computer and use it in GitHub Desktop.
$('#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