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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:11:24+00:00 2026-06-08T07:11:24+00:00

I have a select looking like this: <select name=rowKey_1 id=rowTopic_1> <option value=00>Topic 1</option> </select>

  • 0

I have a select looking like this:

    <select name="rowKey_1" id="rowTopic_1">
        <option value="00">Topic 1</option>
    </select>

I have many of these in a grid on a table.

What I would like is for when the user clicks on the select arrow I would like jQuery to trigger and then have code that calls a URL and retieves new options. Then I would like to have the one option replaced with my new long option list.

I can code the ajax request but how can I code the jQuery that senses the trigger clicked and then how can I code the jQuery that replaces the options with new options?

  • 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-08T07:11:25+00:00Added an answer on June 8, 2026 at 7:11 am
    //When the #rowTopic_1 element is clicked
    $("#rowTopic_1").click(function() {
    
      //Cache the element
      $this = $(this);
    
      //Load new content
      $.ajax({
        url: "yoururl",
        type: "POST",
        success: function(data) {
          //Remove the old content and replace with the returned data
          $this.empty().append(data);
        }
      });
    
    });
    

    For this to work you will need to use a server side language to return html to the page in the format <option value="00">Foo</option>

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

Sidebar

Related Questions

let's say i have list looking like this: <select name=name id=id> <option value=10176232332>David</option> <option
i have select <select id=parentId name=parentId><option value=1>ФАСАДНАЯ ШТУКАТУРКА&lt;BR /&gt;&lt;B&gt;&amp;#0171;STUC-O-FLEX&amp;#0187;&lt;/B&gt;</option> <option value=2>ФОНТАНЫ И САДОВАЯ МЕБЕЛЬ&lt;BR
Let's say I have SELECT name FROM table which gives me something like foo
I have a database table like this: wagetable name lowhours highhours wage Default 0
I have a query like this: Select E.ID, E.NAME, date_format( CONVERT_TZ( CONVERT_TZ( E.ST, '+00:00',
I have a table like this id, name, datetime which might store multiple entries
I have a table which looks like this: Name | Quantity | Unit -------+-------------+----------
Let's say I have a table called Customer, defined like this: Id Name DepartmentId
I am looking for a database that supports indexes like this: select name from
I have MySQL tables looking like this: regions table id | region ------------------- 1

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.