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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:00:20+00:00 2026-06-05T18:00:20+00:00

So if it makes a difference, I am using JQuery UI. I have a

  • 0

So if it makes a difference, I am using JQuery UI. I have a selectbox which is turned into an autocomplete, but I think that I should be able to clear it just like any old select box…

I have tried everything that I have read online:

$("#edit_ts_form_projects").val("0");
$("#edit_ts_form_projects").val(" ");
$("#edit_ts_form_projects nth-option(0).(selected, "selected");//or something like this, cant remember the synax

All of those with a blank first item in the select, with just a space:

<option value=" "> </option>
<option value=""> </option>
<option value="..">..</option>

But no matter what, but selectbox will still have stuff in it (I want the dropdown part to stay intact, I just want to clear the textbox.

Any ideas? Could it be because I am using JQuery UI that this is happening?

Here is the link to the jquery UI control I am using btw:

Jquery UI Combobox

  • 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-05T18:00:22+00:00Added an answer on June 5, 2026 at 6:00 pm

    Try like below,

    $('#combobox').next().find('input').val('');
    

    Where #combobox is the ID of the drop down in your original code.

    DEMO: http://jsfiddle.net/skram/vakKq/1/

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

Sidebar

Related Questions

I have a sandboxed Applet, but that should not make a difference. The Applet
I'm using jQuery 1.4.4 and jQuery UI 1.8.9. I have an autocomplete field that
I'm running a weird issue here. I have code that makes jquery ajax calls
I am trying to create an autocomplete textbox using jquery which will be bound
I have a standard select box which I'm populating using jquery by appending options,
So I am using jQuery UI's dialog box. But as I have a read
I have a PHP script that parses an array using the json_encode() method but
I am maintaining a jQuery-enabled site which makes use of jScrollPane to have fancy
Using jQuery UI's XML data parsed once autocomplete. I've checked the feed and it
I have a jQuery div where pictures are dragged into position similar to this

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.