Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:31:40+00:00 2026-06-03T07:31:40+00:00

I am using the typeahead js extension from twitter bootstrap for an autocomplete field.

  • 0

I am using the typeahead js extension from twitter bootstrap for an autocomplete field. I have a subtle problem with that. I have a text field like :

<%= text_field_tag :search, params[:search], :data => { :provide => 'typeahead', :source => ...} %>

The problem is that i have to specify name=’search’ (with :search), in order to be able to grab the text input search value. However, if i do so, the browser automatically creates an autocomplete history of the entries i have already tried in my text field.

If i remove :search and replace with ”, the browser cannot ‘save’ the history, because there is no name attribute on the text field. However, this way, i cannot get the inputted value myself.

How can i work around this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:31:41+00:00Added an answer on June 3, 2026 at 7:31 am

    When I use autocomplete from jquery-ui, it sets the attribute autocomplete=”off” in the input tag, so you might try including the option :autocomplete=>”off”. The field doesn’t show any inputs from the history, just what was passed in to autocomplete.

    If that doesn’t work, just try jquery-ui’s autocomplete instead. It definitely works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the rottentomatoes movie API in conjunction with twitter's typeahead plugin using bootstrap
using twitter bootstrap typeahead i get google chrome suggestion list above typeahead list $(document).ready(function
Using Android 2.1+. I have a service that gets killed from time to time
I'm using this fork of the Twitter Bootstrap typeahead library , which allows asynchronous
Using mercurial, I've run into an odd problem where a line from one committer
Using Bootstrap's typeahead javascript plugin, I'm attempting to change the data-source attribute via jQuery's
I am using extjs combobox for a sex field. It have two value M
Using report builder 3.0, I have a report that queries a cube. How do
Using CRM 4, I have an entity form that contains a tab with an
I have an article content type with a node reference CCK field that links

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.