mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 07:18:43 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
jQuery(document).ready(function($) {
|
||||
$('input[name=testing]').autocomplete({
|
||||
source: function(request, response){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: ajax_object.ajax_url,
|
||||
data: {
|
||||
action: 'myautocomplete',
|
||||
keyword: $('input[name=testing]').val(),
|
||||
},
|
||||
success:function(data) {
|
||||
console.log(data);
|
||||
response(JSON.parse(data));
|
||||
},
|
||||
error: function(errorThrown){
|
||||
console.log(errorThrown);
|
||||
}
|
||||
})
|
||||
},
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user