• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

jquery autocomplete

I am using jquery autocomplete.
How can I allow only a selection from the choices be allowed? you should not be able to type something in by yourself in that box?
0
rivkamak
Asked:
rivkamak
1 Solution
 
mcnuteCommented:
post us your html and jquery code to help out you better.
0
 
rivkamakAuthor Commented:
This is the autocomplete code. what do I have to add to make sure the only value in the box is one that comes from the autocomplete values?

    $("#GoingTo").autocomplete({
                source: "states.php",
                minLength: 1,
           select: function(event, ui) {
             $('#course_val').val(ui.item.id);
          }
            });
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now