hi to every one
I am working with jquery and mvc 5 and here is below code ,,but auto complete is not working .. also full file is attached
- class="col-lg-6" style="padding-top: 4rem;padding-left: 10px;">class="ui-widget">
- ="customer"> "customer" />
- "http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" rel="Stylesheet" />
- "myCss" href="~/Content/StyleSheet1.css" rel="stylesheet" />
- "~/Content/bootstrap.min.css" rel="stylesheet" />
- "~/Content/bootstrap.css" rel="stylesheet" />
- $("#customer").autocomplete({
- source: function (request, response) {
- //response($.map(list, function (item) {
- // if (ui.item.label.indexOf($("#customer").val()) == 0) {
- // return {
- // // label: ui.item.label,
- // // value: ui.item.value
- // }
- // }
- // })
- // )
- },
- select: function (event, ui) {
- selectedValue = ui.item.value;
- selectedText = ui.item.label;
- },
- minLength: 1
- });
Piyush PansuriyaPosted Apr 8, 2019, 5:48 AM