How do I stop AutoComplete from going to a new page when pressing enter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BaseballGraphs
    New Member
    • Sep 2010
    • 75

    How do I stop AutoComplete from going to a new page when pressing enter?

    Hello,

    I have a two part question. My first question is what I asked in the subject of the question: How can I stop AutoComplete from going to a new page when selecting the value from my database. The reason I need to stop it from going to the next page is because I want the user to select a player value and a statistics value from a drop down menu.

    The second part of my question includes how I can pass the id variable from the drop down and include it into the url.

    At this point in my code, I can successfully pass the player ID variable into the URL, but I dont know how to pass the statistics variable ID from the drop down into the URL.

    Ultimately, I would like the user to click a 'submit' or 'go' button to get to the next page after selecting the player and statistic they want to view.

    The URL string should look like(for example): FrontEndBeta.ph p?p=1&s=1

    Here is the code that I have so far for your reference. Any help highly grateful for: http://pastie.org/1157229
  • Canabeez
    New Member
    • Jul 2009
    • 126

    #2
    I believe it's better to keep the question in the same post, here.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      I believe you can insert a "return false;" into the onsubmit event of your various textboxes (input type="text")

      Comment

      Working...