Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#codepostal').autocomplete({
- source: postalcodes,
- minLength: 2,
- focus: function(event, ui) {
- $(this).val(ui.item.value);
- return false;
- }
- })
- .data("autocomplete")._renderItem = function(ul, item) {
- return $("<li></li>")
- .data("item.autocomplete", item)
- .append("<a>" + item.value + " - " + item.label + "</a>")
- .appendTo(ul);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement