Skip to content

Instantly share code, notes, and snippets.

@PilotBob
Created March 28, 2012 20:43
Show Gist options
  • Save PilotBob/2230361 to your computer and use it in GitHub Desktop.
Save PilotBob/2230361 to your computer and use it in GitHub Desktop.
$("[id$=eFinBudget]").autocomplete({
source: function (request, response) {
$.ajax({
url: baseUrl + 'eFinancials/Lookup/BudgetVersionsForEntity',
data: {
term: request.term,
entity: $("#EntityKey").val(),
fiscalYear: $(this).closest("tr").find("input[id$=FiscalYear]").val()
},
success: function (data, status, xhr) { response(data); }
});
},
minLength: 2,
select: function (event, ui) { $(this).closest("tr").find("[id$=eFinBudgetKey]").val(ui.item.id) }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment