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

  • Home
  • SEARCH
  • 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 4614044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:38:28+00:00 2026-05-22T01:38:28+00:00

Autocomplete inputs make life easier. However, I am working on a project where the

  • 0

Autocomplete inputs make life easier. However, I am working on a project where the customer insists on having ordinary inputs (radio buttons, checkbox groups and drop down selects). I don’t want to change sever-side code and plan to write a javascript function to create these form elements on the client side. I think the best approach is to give a plain textbox input a class and transform it with the function to the ultimate input type. But I don’t want to reinvent the wheel, so I thought I’d check if this has already been done. Google didn’t bring expected results, so I turn to SO, have you seen such function/plugin?

  • 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-05-22T01:38:29+00:00Added an answer on May 22, 2026 at 1:38 am

    There is one now 😉 here is slightly modified jsfidle (because we don’t want to pull data from a real server). The code in a real application would be something like this:

    Markup

    Please choose the product:<br/>
    <!-- not all products; only what we have on stock -->
    <input type="text" id="product">
    

    JS

    $(document).ready(function() {
    
      $.getScript('available_products.php', function() {
    
        // we assume the server would return an array like this:
        // var products = ['33712:Product A', '12501:Product B', '14619:Product C'];
    
        var myoptions = '';
        $.each(
        products, function(n, p) {
            var pp = p.split(':');
            var i = pp[0];
            var v = pp[1];
            myoptions += '<option value="' + i + '">' + v + '</option>';
        });
    
        $('#product').replaceWith('<select id="product">' + myoptions + '</select>');
    
      });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble getting the autocomplete box in System.Windows.Controls.Input working as I wish. When
I've got autocomplete working fine, but I'm trying to figure out way to make
I have a jquery autocomplete field working fine followed by a date input field.
Following on from my previous two questions: How to make jQuery autocomplete execute a
So I've got my jquery autocomplete 'working,' but its a little fidgety since I
Im trying to make this dynamic email input field which uses autocomplete on a
i have a problem.. I use the autocomplete plugin, that i edite for make
I want to make my input field to have jquery autocomplete where I fetch
I now have a working JavaScript autocomplete function, thanks to help from many of
I'm using jquery-ui autocomplete to validate some form inputs. I've got this code :

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.