Solved

jquery autocomplete

Posted on 2012-12-25
3
329 Views
Last Modified: 2012-12-27
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
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 38720610
0
 
LVL 11

Expert Comment

by:mcnute
ID: 38720995
post us your html and jquery code to help out you better.
0
 

Author Comment

by:rivkamak
ID: 38722684
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question