Paypal Options Change Price, Multiple Forms

Paypal Options Change Price, Multiple Forms

First post, glad I found this place. Fairly new to JQuery and have hit a wall. Trying to write a function for a page with multiple paypal forms. Upon a form being submitted the price should be updated based on the size option selected. I know that you can access the form through "this" but am unsure how to access the fields to make the changes. All size prices will be the same for all styles. There will be a lot of forms on the final page.

Any help would be appreciated.

Thanks,

Chris



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js" language="javascript">
</script>

</head>

<body>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="add" value="1">
  <input type="hidden" name="cmd" value="_cart">
  <input type="hidden" name="business" value="paypal@email.com">
  <input type="hidden" name="item_name" value="Shirt Style 1">
  <input type="hidden" name="on0" value="Size">
  <select name="os0">
     <option value="Select a Size">Select a Size
    <option value="Small">Small ($12.00)</option>
    <option value="Medium">Medium ($13.00)</option>
    <option value="Large">Large ($14.00)</option>
    </select>
  <input type="hidden" name="amount" value="12.00">
  <input type="hidden" name="no_shipping" value="2">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="lc" value="US">
  <input type="submit" name="submit" value="Buy" class="submit" />
</form>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="add" value="1">
  <input type="hidden" name="cmd" value="_cart">
  <input type="hidden" name="business" value="paypal@email.com">
  <input type="hidden" name="item_name" value="Shirt Style 2">
  <input type="hidden" name="on0" value="Size">
  <select name="os0">
     <option value="Select a Size">Select a Size
    <option value="Small">Small ($12.00)</option>
    <option value="Medium">Medium ($13.00)</option>
    <option value="Large">Large ($14.00)</option>
    </select>
  <input type="hidden" name="amount" value="12.00">
  <input type="hidden" name="no_shipping" value="2">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="lc" value="US">
  <input type="submit" name="submit" value="Buy" class="submit" />
</form>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="add" value="1">
  <input type="hidden" name="cmd" value="_cart">
  <input type="hidden" name="business" value="paypal@email.com">
  <input type="hidden" name="item_name" value="Shirt Style 2">
  <input type="hidden" name="on0" value="Size">
  <select name="os0">
     <option value="Select a Size">Select a Size
    <option value="Small">Small ($12.00)</option>
    <option value="Medium">Medium ($13.00)</option>
    <option value="Large">Large ($14.00)</option>
    </select>
  <input type="hidden" name="amount" value="12.00">
  <input type="hidden" name="no_shipping" value="2">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="lc" value="US">
  <input type="submit" name="submit" value="Buy" class="submit" />
</form>

</body>
</html>