Solved

jquery autocomplete

Posted on 2012-12-25
3
323 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to dynamically set the form action using jQuery.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now