Asp.net MVC 4 Autocomplete
Hi evry one. I have proble on use
on my project. I have error Runtime Error JavaScript: Object does not support property or method "autocomplete"
On my code.
<script language="javascript">
$(document).ready(function () {
$("#title").bind("autocompleteselect",
function(event,ui) {}.autocomplete({
source: "/Default1/Autocomplete/",
minLength: 2,
select: function (event, ui) {
alert("State Id:" + ui.item.Id + "\n" + "State Name :" + ui.item.value);
}})
);
});
If i am copy this code on project MVC 3 it's fine. I am copy from my MVC 3 libary but this not halp.
Solved
On start View add