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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:39:09+00:00 2026-06-10T23:39:09+00:00

I have 3 separate paypal buttons created. One for small, medium and large (all

  • 0

I have 3 separate paypal buttons created. One for small, medium and large (all different prices)

the small, medium and large are images on my website S, M & L.

I want a customer to select S, M or L but these are all different prices so I want the ‘add to cart’ button to update automatically depending on what the customer selects. How can i do this.

  • 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-10T23:39:11+00:00Added an answer on June 10, 2026 at 11:39 pm

    If you choose to use jQuery, this can be accomplished with ease.

    First, include jquery with this line:

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    

    Now use the code below. Give each image the ID of it’s size (small, medium or large) and when that image is clicked the correct form will show. Remember to paste the correct form fields into the correct spaces.

    <script>    
        $('#small').click(function(){
            $('.paypalForm').hide();
            $('#smallForm').show();
        });
        $('#medium').click(function(){
            $('.paypalForm').hide();
            $('#mediumForm').show();
        });
        $('#large').click(function(){
            $('.paypalForm').hide();
            $('#largeForm').show();
        });
    </script>
    
    <form id="smallForm" class="paypalForm" target="paypal" action="paypal.com/cgi-bin/webscr" method="post">
        ...
    </form>
    
    
    <form id="mediumForm" class="paypalForm" target="paypal" action="paypal.com/cgi-bin/webscr" method="post">
        ...
    </form>
    
    
    <form id="largeForm" class="paypalForm" target="paypal" action="paypal.com/cgi-bin/webscr" method="post">
        ...
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created two separate objects, one of class Order and one of class
I have many facebook comment boxes on my website. All pages have separate comment
I have a website that is mirrored cross two sub-domains. So I have separate
I use subversion to manage my yii website (php framework) and have separate backend
INFORMIX-SE with ISQL 7.3: I have separate tables for Loan, Purchase & Sales transactions.
In Apple iTunes app market one can have separate screenshots for each language -
I have separate apps with a foreign key from a model in one model
I have a DataGrid with 3 DataGridColumns. All 3 of them have separate dataFields.
I'm preparing my paypal system and have a separate page that forwards the user
I have separate project with some of my custom ASP.NET MVC helpers In one

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.