Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

jquery autocomplete

Posted on 2012-12-25
3
Medium Priority
?
334 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

670 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