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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:50:34+00:00 2026-06-17T02:50:34+00:00

I have 2 upload buttons in one page. When I click upload button, select

  • 0

I have 2 upload buttons in one page. When I click upload button, select file and upload it, it is displayed in a table, as the following html code:

<div id="MainContents">         
<p>                
    <input type="hidden" id="89a11bfc-bb33-48f4-a5b4-1e062e8347c0">
    <button>Upload files</button>
    <table cellspacing="1" cellpadding="2" class="UploadedTable">
        <tbody>
            <tr class="Change_me_Row">
                <td />
                <td />
            </tr>
        </tbody>
    </table>
</p>          
</div>
<div id="MainContents">         
    <p>                
        <input type="hidden" id="53a2a220-4c76-46db-bafa-585c7f0c456b">
        <button>Upload files</button>
        <table cellspacing="1" cellpadding="2" class="UploadedTable">
            <tbody>
                <tr class="Change_me_Row">
                    <td />
                    <td />
                </tr>
            </tbody>
        </table>
    </p>          
</div>

My attempt is that I want to change the tr class name with unique name for each upload button. I have the OnPostback event of this upload button, and I tried something like:

$(this).find("tr").removeClass("Change_me_Row").addClass("New_Class_Name");

or

$(this).closest("tr").toggleClass("Change_me_Row New_Class_Name");

but neither of them worked!

I hope someone can help me out. 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-06-17T02:50:35+00:00Added an answer on June 17, 2026 at 2:50 am

    try going up to the parent and then find class among it’s children:

    $(this).parent().children('Change_me_Row').toggleClass('Change_me_Row New_Class_Name');
    

    Also, make sure that the context with your callback function is correct (this is pointing to the upload button).

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

Sidebar

Related Questions

I have an aspx page with multiple FileUpload controls and one Upload button. In
I have HTML page, which gives an option to upload a file to the
i have default.aspx page and one user control. usercontrol is having following code for
I have one for with 4-5 fields and one Upload button for Uploading One
I have a file, which the users browse and hit the upload button, i
I have an app. In this on the click of an Upload button a
I have a FileUpload control in the Source page. On the Upload button handler,
i have upload a model with the following model loader in my Opengles code
I have setup a page where multiple instances of the jQuery File Upload plugin
On this page: http://www.ubhape2.com/formhelp.html I have 3 file uploads. I have it set now

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.