Skip to content

Instantly share code, notes, and snippets.

@vvikramjhu
Last active August 29, 2015 13:55
Show Gist options
  • Save vvikramjhu/8733113 to your computer and use it in GitHub Desktop.
Save vvikramjhu/8733113 to your computer and use it in GitHub Desktop.
console output ----
http://imagebin.org/290152
function bind_auto_complete_new(){
$('.auto_complete_cve').on('keyup.autocomplete', function(){
search_field_id = $(this).prev().val();
$(this).autocomplete({
source: function(request, response) {
$.get('cve_auto_complete_data_new.php', { type_id: search_field_id, search_term: request.term }, function(data) {
$.each(data, function(key, value) {
console.log($(this));
});
});
},
delay: 250,
minLength: 3
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment