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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:41:40+00:00 2026-05-30T18:41:40+00:00

I am working on a website. Basically, I have two scripts in my website.

  • 0

I am working on a website. Basically, I have two scripts in my website. The first script is being executed well. However, the second script won’t work.

Basically, what I want to do is that if the user clicks on a button, certain elements on the page are hidden whilst others are shown. The elements in question are tables (NOT asp tables).

Here is the code.

<script type="text/javascript">
        function Open_Window()
        {
            window.open("DonationConfirmation.aspx")
        }
    </script>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#PayPalButton1").click(function () {
                $("#PayPalTableButton").show();
                $("#DonationsTableButton").hide();
            });
            $("#GoogleButton1").click(function () {
                $("#PayPalTableButton").hide();
                $("#DonationsTableButton").show();
            });            
        });
    </script>

The first script, that is, function Open_Window() is working perfectly.

However, the second script, written in jQuery, won’t work.

Here is the code of the buttons (in the form of images) and the tables.

<asp:Image ID="PayPalButton1" runat="server" ImageUrl="Resources/Icons/PayPal.jpg" onmouseover="this.style.cursor = 'pointer';" Height="65px" Width="130px" />

<asp:Image ID="GoogleButton1" runat="server" ImageUrl="Resources/Icons/Google.jpg" onmouseover="this.style.cursor = 'pointer';" Height="65px" Width="130px" />

<table id="PayPalTableButton" runat="server" style="margin:auto; text-align:center; width:100%;">
                            <tr>
                                <td style="text-align:center; height:60px;">
                                    //Code
                                </td>
                            </tr>
                        </table>

                        <table id="DonationsTableButton" runat="server" style="margin:auto; text-align:center; width:100%;">
                            <tr>
                                <td style="text-align:center; height:60px;">
                                    //Code
                                </td>
                            </tr>
                        </table>
  • 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-30T18:41:42+00:00Added an answer on May 30, 2026 at 6:41 pm

    ASP.NET transforms the button ID’s into something else.

    Set the ClientIDMode to Static on each button.

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

Sidebar

Related Questions

Basically I have an asp.net website with login and search pages. Currently, I have
I am currently working on a website and lately have been using GD with
I am working on an AJAX website where there are two search parameters. I
I was working on my website when I cam across this problem, I have
I have my website in /var/www/invent. I have zend-framework in /var/www/invent/library. Basically what i
I have some JQuery / JSON features on a website I'm working on. These
I am working on a website for a client and they have an interesting
I am working on a website and the client wants to have something similar
I'm working on a website where I have some text which I am using
I am working on a website where users have core data about their profile

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.