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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:10:56+00:00 2026-05-22T15:10:56+00:00

I try to edit content of an select input when text entered to a

  • 0

I try to edit content of an select input when text entered to a textbox by using jQuery.
This is my TextBox

<input id="id_subsector_selector" type="text" maxlength="100" name="subsector_selector" onblur="onSubSectorSelectorChange(this);"/>

and this is my multiple selectbox

<select id="id_subsector" name="subsector" multiple="multiple">
<option value="14">Yazılımevi </option>
</select>

This is my javascript function(I know this is trivial)

function onSubSectorSelectorChange(item) {
    $('select#id_subsector').html("");
}

The question is when I enter a character to the textbox, althought onSubSectorSelectorChange function is triggered, selectbox content doesn’t change until I click on somewhere on page or press tab button.

The problem may be the trigger action which is “onBlur” but I couldn’t find a proper function.
I am waiting for any comment or solution!

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-22T15:10:56+00:00Added an answer on May 22, 2026 at 3:10 pm

    blur is triggered when the element loses focus. What you are after is the keyup event:

    http://api.jquery.com/keyup/

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

Sidebar

Related Questions

I receive this message (see image below) when I try to edit in debugging.
This query works: SELECT Article.id, Article.post_time, Article.post_locked, Article.comments_locked, Article.title, IF(CHAR_LENGTH(Article.content)>2000, RPAD(LEFT(Article.content,2000),2003,'.'), Article.content) as content,
I am following this tutorial: http://www.9lessons.info/2011/03/live-table-edit-with-jquery-and-ajax.html My addition is most content is ajax/json/dynamic. I
I have a input type=file tag in my html which allows user to select
I am trying to parse this content using jsoup. <div class=imageInlineCenter style=width: 468px; align=center><img
When I try to edit texts in my iPhone application ( UITextfield ), it
I used to go back and edit my Mercurial commits to try to create
Edit: Solved. Hi, I'm starting with Qt, I try to connect a slot to
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
I have an edit page that fills the content with the original content from

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.