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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:42:26+00:00 2026-06-17T09:42:26+00:00

I have a table with 3 row and 3 selectboxes in each of them.

  • 0

I have a table with 3 row and 3 selectboxes in each of them. On change I want to hide the selectbox, insert a small loader image for 250 ms and then show the selectbox with the selected option. Ex. if I select “completed” in row1, hide the select only in row1, insert the loader image, and then show the selectbox with “completed” as selected( add attribute selected=”selected to the option”).
Here is my demo: http://jsfiddle.net/5ueYw/1/ and what have I got so far. Who can give some tips? Thanks

HTML:

<table id="inbTB">
<thead>
    <tr class="head">
        <th class="sortH alignCenter smSelN header">#</th>
        <th class="sortH alignLeft header headerWidth " nowrap="nowrap">Name</th>
        <th class="sortH alignLeft header smSelR"><tag:lang.stats />Status</th>
    </tr>
</thead>
<tbody>
<tr class="sortRow">
        <td class="alignCenter">#1</td>
        <td class="alignLeft upCase">One</td>
        <td class="alignCenter">
            <select class="stSel smSelR smSelRInput">
                <option value="0">New</option>
                <option value="1">Completed</option>
                <option value="2">Canceled</option>
            </select>
            <div class="loader"></div>
        </td>
    </tr>
 <tr class="sortRow">
        <td class="alignCenter">#2</td>
        <td class="alignLeft upCase">Two</td>
        <td class="alignCenter">
            <select class="stSel smSelR smSelRInput">
                <option value="0">New</option>
                <option value="1">Completed</option>
                <option value="2">Canceled</option>
            </select>
            <div class="loader"></div>
        </td>
    </tr>
 <tr class="sortRow">
        <td class="alignCenter">#3</td>
        <td class="alignLeft upCase">Three</td>
        <td class="alignCenter">
            <select class="stSel smSelR smSelRInput">
                <option value="0">New</option>
                <option value="1">Completed</option>
                <option value="2">Canceled</option>
            </select>
            <div class="loader"></div>
        </td>
    </tr>

JQUERY:

    var gif = $('.alignCenter .loader');
    $('.stSel').change(function(){
     $('select').hide();
   gif.html('<img alt="" src="" />').show().delay(250).fadeOut(function(){  // src    image is a loader gif
     $('.stSel option selected').show();
   });
})
  • 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-17T09:42:27+00:00Added an answer on June 17, 2026 at 9:42 am

    Here is a start, there are some areas that I am sure you can improve upon:

    http://jsfiddle.net/5ueYw/6/

    HTML

    <table id="inbTB">
        <thead>
            <tr class="head">
                <th class="sortH alignCenter smSelN header">#</th>
                <th class="sortH alignLeft header headerWidth " nowrap="nowrap">Name</th>
                <th class="sortH alignLeft header smSelR"><tag:lang.stats />Status</th>
            </tr>
        </thead>
        <tbody>
        <tr class="sortRow">
                <td class="alignCenter">#1</td>
                <td class="alignLeft upCase">One</td>
                <td class="alignCenter">
                    <select class="stSel smSelR smSelRInput">
                        <option value="0">New</option>
                        <option value="1">Completed</option>
                        <option value="2">Canceled</option>
                    </select>
                    <div class="loader" style="display:none;">loading...</div>
                </td>
            </tr>
         <tr class="sortRow">
                <td class="alignCenter">#2</td>
                <td class="alignLeft upCase">Two</td>
                <td class="alignCenter">
                    <select class="stSel smSelR smSelRInput">
                        <option value="0">New</option>
                        <option value="1">Completed</option>
                        <option value="2">Canceled</option>
                    </select>
                    <div class="loader" style="display:none;">loading...</div>
                </td>
            </tr>
         <tr class="sortRow">
                <td class="alignCenter">#3</td>
                <td class="alignLeft upCase">Three</td>
                <td class="alignCenter">
                    <select class="stSel smSelR smSelRInput">
                        <option value="0">New</option>
                        <option value="1">Completed</option>
                        <option value="2">Canceled</option>
                    </select>
                    <div class="loader" style="display:none;">loading...</div>
                </td>
            </tr>
      </tbody>
    </table>
    

    JS

    $('.stSel').change(function(){
      myselect = $(this); 
      myloader = $(this).parent().children('.loader');
    
        // Make sure we override animations that are already running, there is probably a
      // better way to do this.  
      $('.stSel').show();
      $('.loader').hide();  
    
      myselect.hide();
      myloader.show();
    
      setTimeout(function() {
        showme( myselect, myloader );
      }, 2000)  
    });
    
    function showme(el, loader){
      el.show();
      loader.hide();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table where each row has 13 TD elements. I want to
I have a table row with 5 cells. I want to click an image
I have a data table filled with text in each table row. How do
I have a table where each row has a description field as well as
I have a table where each row has a category column and a sub-category
in my app, i have created table rows dynamically in each table row, i
I have a table row and I tried many things to change its color
I have a table that's sortable. Within each row is a link that dynamically
I have a table view like a below picture: I want to change check
i have html table and add in table row in runtime. i want to

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.