Im really sorry for asking such a newby question but I dont know what else to do.
I try to do the following
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="./js/jquery.autocomplete.css">
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/jquery.autocomplete.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
alert('1');
$("#producto").setOptions({max: 2});
alert('2');
});
});
</script>
</head>
<body >
<a href="">Link</a>
<input id="producto" name="producto" value="hola" />
</body></html>
It always give the same error that the object doesnt accept the method ‘setOptions’.
What Im doint wrong !!?? any suggestion?
First, you have to initialize autocomplete:
And then you can use .setOptions() and other methods.
PS:
Autocomplete Jquery Plugin Page Says: