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 6759347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:55:41+00:00 2026-05-26T13:55:41+00:00

I got the jQuery autocomplete form mostly working how I need it to work

  • 0

I got the jQuery autocomplete form mostly working how I need it to work here: http://problemio.com/test.php

but there is one problem: I can’t get the area where the chosen items are listed to be a form field. Right now it is just some uneditable text area and when I try to do a

var log = $("#log").val(); 

that gets nothing in the value, so I can’t really submit it.

1) How do I make that area into a form field whose value can be retrieved upon form submission?
2) Also, how do people manage to allow the users to remove the items they had chosen?

Thanks!!

  • 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-26T13:55:41+00:00Added an answer on May 26, 2026 at 1:55 pm

    You can’t get the value of a div element (there isn’t one). That’s what you’re trying to do in your #add_category click handler on line 75 ($("#log").val() — #log is a div)

    You need to get the html or text from the div:

    // change line 75 to 
    $("#log").html()
    // or
    $("#log").text()
    

    OR

    You can just change the html of the log area with a textarea:

    //change
    <div id="log" style="height: 200px; width: 300px; overflow: auto;" class="ui-widget-content"></div>
    
    // to
    <textarea id="log" style="height: 200px; width: 300px; overflow: auto;" class="ui-widget-content"></textarea>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did everything mentioned on http://volaresystems.com/Blog/post/Autocomplete-dropdown-with-jQuery-UI-and-MVC.aspx but i got nothing when i type a-z
I've got a form that uses the jquery autocomplete UI plugin, http://jqueryui.com/demos/autocomplete/ , which
I've got jQuery Masonry working on my site http://www.lovejungle.com/dev/testenvironment/?cat=4 But for the life of
So I've got my jquery autocomplete 'working,' but its a little fidgety since I
I have some problem with Jquery Autocomplete plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ ) I got it
I've got the new autocomplete widget in jQuery UI 1.8rc3 working great in Firefox.
Recently I started using https://github.com/crowdint/rails3-jquery-autocomplete It works great, but I was trying to set
I got Jquery UI Datepicker that work well, but one important issue make me
I'm using jquery-ui autocomplete to validate some form inputs. I've got this code :
So I half got jQuery's ajax ( $.post ) to work. But, for some

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.