Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.ready(function () {
- $('#Title').autocomplete({
- source: function (request, response) {
- $ajax({
- url: "/Course/Create",
- type: "POST",
- dataType: "json",
- data: { Prefix: request.term },
- success: function (data) {
- response($.map(data, function (item) {
- return { label: item.Title, vlaue: item.Title };
- }))
- }
- })
- },
- messages: {
- noResult: "", results: ""
- }
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement