Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.chzn-choices input').autocomplete({
- source: function( request, response ) {
- $.ajax({
- url: "/change/name/autocomplete/"+request.term+"/",
- dataType: "json",
- beforeSend: function(){$('ul.chzn-results').empty();},
- success: function( data ) {
- response( $.map( data, function( item ) {
- $('ul.chzn-results').append('<li class="active-result">' + item.name + '</li>');
- }));
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement