Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (item.id == 0)
- {
- return {
- label: "Location Not Found",
- value: item.id
- }
- }
- else
- {
- return {
- label: item.location_name,
- value: item.id
- }
- }
- }));
- }
- });
- },
- select: function(event, ui) {
- $(".search_box").val(ui.item.label);
- $("#location_id").val(ui.item.value);
- $(".search_box").blur();
- _self.autocomplete("close");
- return false;
- },
- focus: function(event, ui) {
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement