Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8321711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:06:58+00:00 2026-06-08T23:06:58+00:00

Im really sorry for asking such a newby question but I dont know what

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:07:01+00:00Added an answer on June 8, 2026 at 11:07 pm

    First, you have to initialize autocomplete:

     $("#producto").autocomplete("", {
        width: 320,
        max: 14,
        highlight: false
        //..Some Options
    });
    

    And then you can use .setOptions() and other methods.

    PS:
    Autocomplete Jquery Plugin Page Says:

    Note (2010-06-23): This plugin is deprecated and not developed anymore. ITS FILES ARE NOT MAINTAINED BY THE JQUERY PROJECT, AND ARE NOT AVAILABLE AT JQUERY.COM.

    Its successor is part of jQuery UI:

    http://jqueryui.com/demos/autocomplete/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all I'm really sorry for asking such a basic thing, I know
Really sorry to be asking a bit of an off topic question, but we've
I'm sorry for asking a really stupid question, but since facebook changes its ways
Really stupid question, sorry, but I can't find it on google (I'm sure it's
Sorry if this is a really basic question but it's been really getting to
A really php newbie here, sorry if the question is too simple. I’m following
I am sorry for the title but I really do not know how to
Sorry for asking a basic question like this but I've been reading on this
Sorry for asking this question, but I searched all Java-related questions, but I got
I'm really sorry. This must seem like an incredibly stupid question, but unless I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.